Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Alex D
GHC
Commits
0eef3f31
Commit
0eef3f31
authored
May 02, 2007
by
simonpj@microsoft.com
Browse files
Comments, plus type sigs
parent
b4ef814c
Changes
3
Show whitespace changes
Inline
Side-by-side
compiler/hsSyn/HsPat.lhs
View file @
0eef3f31
...
@@ -131,7 +131,7 @@ data Pat id
...
@@ -131,7 +131,7 @@ data Pat id
| CoPat HsWrapper -- If co::t1 -> t2, p::t2,
| CoPat HsWrapper -- If co::t1 -> t2, p::t2,
-- then (CoPat co p) :: t1
-- then (CoPat co p) :: t1
(Pat id) -- Why not LPat? Ans: existing locn will do
(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
-- During desugaring a (CoPat co pat) turns into a cast with 'co' on
-- the scrutinee, followed by a match on 'pat'
-- the scrutinee, followed by a match on 'pat'
\end{code}
\end{code}
...
...
compiler/typecheck/FamInst.lhs
View file @
0eef3f31
...
@@ -65,6 +65,7 @@ instance Ord ModulePair where
...
@@ -65,6 +65,7 @@ instance Ord ModulePair where
--
--
type ModulePairSet = FiniteMap ModulePair ()
type ModulePairSet = FiniteMap ModulePair ()
listToSet :: [ModulePair] -> ModulePairSet
listToSet l = listToFM (zip l (repeat ()))
listToSet l = listToFM (zip l (repeat ()))
checkFamInstConsistency :: [Module] -> [Module] -> TcM ()
checkFamInstConsistency :: [Module] -> [Module] -> TcM ()
...
...
compiler/typecheck/TcPat.lhs
View file @
0eef3f31
...
@@ -584,8 +584,7 @@ tcConPat pstate con_span data_con tycon pat_ty arg_pats thing_inside
...
@@ -584,8 +584,7 @@ tcConPat pstate con_span data_con tycon pat_ty arg_pats thing_inside
}
}
where
where
-- Split against the family tycon if the pattern constructor
-- Split against the family tycon if the pattern constructor
-- belongs to a representation tycon.
-- belongs to a family instance tycon.
--
boxySplitTyConAppWithFamily tycon pat_ty =
boxySplitTyConAppWithFamily tycon pat_ty =
traceTc traceMsg >>
traceTc traceMsg >>
case tyConFamInst_maybe tycon of
case tyConFamInst_maybe tycon of
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment