projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add bang patterns
[ghc-hetmet.git]
/
ghc
/
compiler
/
deSugar
/
Match.lhs
diff --git
a/ghc/compiler/deSugar/Match.lhs
b/ghc/compiler/deSugar/Match.lhs
index
19cace8
..
bbc37b3
100644
(file)
--- a/
ghc/compiler/deSugar/Match.lhs
+++ b/
ghc/compiler/deSugar/Match.lhs
@@
-410,6
+410,8
@@
tidy1 v wrap (VarPatOut var binds)
tidy1 v wrap (AsPat (L _ var) pat)
= tidy1 v (wrap . wrapBind var v) (unLoc pat)
+tidy1 v wrap (BangPat pat)
+ = tidy1 v (wrap . seqVar v) (unLoc pat)
{- now, here we handle lazy patterns:
tidy1 v ~p bs = (v, v1 = case v of p -> v1 :