Comments, plus type sigs
authorsimonpj@microsoft.com <unknown>
Wed, 2 May 2007 16:38:54 +0000 (16:38 +0000)
committersimonpj@microsoft.com <unknown>
Wed, 2 May 2007 16:38:54 +0000 (16:38 +0000)
compiler/hsSyn/HsPat.lhs
compiler/typecheck/FamInst.lhs
compiler/typecheck/TcPat.lhs

index ea59e88..abfb3c6 100644 (file)
@@ -131,7 +131,7 @@ data Pat id
   | CoPat      HsWrapper               -- If co::t1 -> t2, p::t2, 
                                        -- then (CoPat co p) :: t1
                (Pat id)                -- Why not LPat?  Ans: existing locn will do
-               Type
+               Type                    -- Type of whole pattern, t1
        -- During desugaring a (CoPat co pat) turns into a cast with 'co' on 
        -- the scrutinee, followed by a match on 'pat'
 \end{code}
index 9a34943..fd98fe9 100644 (file)
@@ -65,6 +65,7 @@ instance Ord ModulePair where
 --
 type ModulePairSet = FiniteMap ModulePair ()
 
+listToSet :: [ModulePair] -> ModulePairSet
 listToSet l = listToFM (zip l (repeat ()))
 
 checkFamInstConsistency :: [Module] -> [Module] -> TcM ()
index 14c12a5..9d4c9b0 100644 (file)
@@ -584,8 +584,7 @@ tcConPat pstate con_span data_con tycon pat_ty arg_pats thing_inside
        }
   where
     -- Split against the family tycon if the pattern constructor 
-    -- belongs to a representation tycon.
-    --
+    -- belongs to a family instance tycon.
     boxySplitTyConAppWithFamily tycon pat_ty =
       traceTc traceMsg >>
       case tyConFamInst_maybe tycon of