[project @ 2004-12-21 12:09:14 by simonpj]
authorsimonpj <unknown>
Tue, 21 Dec 2004 12:09:14 +0000 (12:09 +0000)
committersimonpj <unknown>
Tue, 21 Dec 2004 12:09:14 +0000 (12:09 +0000)
Comments only

ghc/compiler/typecheck/TcPat.lhs

index 6cedb81..77de074 100644 (file)
@@ -114,7 +114,8 @@ tcCheckPats ctxt pats tys thing_inside      -- A trivial wrapper
 %************************************************************************
 
 \begin{code}
-data PatCtxt = LamPat Bool | LetPat TcSigFun
+data PatCtxt = LamPat Bool     -- Used for lambda, case, do-notation etc
+            | LetPat TcSigFun  -- Used for let(rec) bindings
        -- True <=> we are checking the case expression, 
        --              so can do full-blown refinement
        -- False <=> inferring, do no refinement