Skip to content
Snippets Groups Projects
Forked from Glasgow Haskell Compiler / GHC
14607 commits behind the upstream repository.
Vladislav Zavialov's avatar
Vladislav Zavialov authored
EWildPat is a constructor of HsExpr used in the parser to represent
wildcards in ambiguous positions:

* in expression context, EWildPat is turned into hsHoleExpr (see rnExpr)
* in pattern context, EWildPat is turned into WildPat (see checkPattern)

Since EWildPat exists solely for the needs of the parser, we could
remove it by improving the parser.

However, EWildPat has also been used for a different purpose since
8a506104: to represent patterns that the coverage checker cannot handle.
Not only this is a misuse of EWildPat, it also stymies the removal of
EWildPat.
1959bad3
History
Name Last commit Last update