X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2FdeSugar%2FCheck.lhs;h=2432051c7bc7a638854723b8e4006a852e034fc1;hb=8419203b7eb5aa4bb13f8d1263632de4d10a4048;hp=355055b028d73f6d67ac436feb2e7f1a91e2926a;hpb=9504390ca8d82e3cb9618e44baea124ce27b9bde;p=ghc-hetmet.git diff --git a/compiler/deSugar/Check.lhs b/compiler/deSugar/Check.lhs index 355055b..2432051 100644 --- a/compiler/deSugar/Check.lhs +++ b/compiler/deSugar/Check.lhs @@ -643,7 +643,7 @@ might_fail_pat (ConPatOut { pat_args = ps }) = any might_fail_lpat (hsConPatArgs -- Finally the ones that are sure to succeed, or which are covered by the checking algorithm might_fail_pat (LazyPat _) = False -- Always succeeds -might_fail_pat _ = False -- VarPat, VarPatOut, WildPat, LitPat, NPat, TypePat +might_fail_pat _ = False -- VarPat, WildPat, LitPat, NPat, TypePat -------------- might_fail_lpat :: LPat Id -> Bool @@ -657,7 +657,6 @@ tidy_lpat p = fmap tidy_pat p tidy_pat :: Pat Id -> Pat Id tidy_pat pat@(WildPat _) = pat tidy_pat (VarPat id) = WildPat (idType id) -tidy_pat (VarPatOut id _) = WildPat (idType id) -- Ignore the bindings tidy_pat (ParPat p) = tidy_pat (unLoc p) tidy_pat (LazyPat p) = WildPat (hsLPatType p) -- For overlap and exhaustiveness checking -- purposes, a ~pat is like a wildcard