diff options
author | Krzysztof Gogolewski <krzysztof.gogolewski@tweag.io> | 2020-03-25 00:43:32 +0100 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2020-03-29 17:33:59 -0400 |
commit | 45eb9d8cad254440eaea25676d6788ca13baa2fb (patch) | |
tree | 2a3fb7049b8d32ef9bf5d6cb7a76f0631d821fe6 /compiler/typecheck/TcSigs.hs | |
parent | a0d8e92e9c9b67426aa139d6bc46363d8940f992 (diff) | |
download | haskell-45eb9d8cad254440eaea25676d6788ca13baa2fb.tar.gz |
Minor cleanup
- Simplify mkBuildExpr, the function newTyVars was called
only on a one-element list.
- TTG: use noExtCon in more places. This is more future-proof.
- In zonkExpr, panic instead of printing a warning.
Diffstat (limited to 'compiler/typecheck/TcSigs.hs')
-rw-r--r-- | compiler/typecheck/TcSigs.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/typecheck/TcSigs.hs b/compiler/typecheck/TcSigs.hs index fd91b84326..70b8bb2261 100644 --- a/compiler/typecheck/TcSigs.hs +++ b/compiler/typecheck/TcSigs.hs @@ -291,7 +291,7 @@ no_anon_wc lty = go lty HsTyLit{} -> True HsTyVar{} -> True HsStarTy{} -> True - XHsType{} -> True -- Core type, which does not have any wildcard + XHsType (NHsCoreTy{}) -> True -- Core type, which does not have any wildcard gos = all go |