Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
cec9b62f
Commit
cec9b62f
authored
Jul 31, 2008
by
batterseapower
Browse files
Handle introduction of MkCore in MatchCon
parent
d0f4ec45
Changes
1
Hide whitespace changes
Inline
Side-by-side
compiler/deSugar/MatchCon.lhs
View file @
cec9b62f
...
...
@@ -25,6 +25,7 @@ import DataCon
import TcType
import Type
import CoreSyn
import MkCore
import DsMonad
import DsUtils
import Util ( takeList )
...
...
@@ -124,7 +125,7 @@ matchOneCon vars ty (eqn1 : eqns) -- All eqns for a single constructor
= do { prs <- dsLHsBinds bind
; return (wrapBinds (tvs `zip` tvs1)
. wrapBinds (ds `zip` dicts1)
. mk
Ds
Let (Rec prs),
. mk
Core
Let (Rec prs),
eqn { eqn_pats = conArgPats con1 arg_tys args ++ pats }) }
conArgPats :: DataCon
...
...
Write
Preview
Markdown
is supported
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