projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ce3b2ea
)
White space only
author
simonpj@microsoft.com
<unknown>
Thu, 21 Oct 2010 17:02:32 +0000
(17:02 +0000)
committer
simonpj@microsoft.com
<unknown>
Thu, 21 Oct 2010 17:02:32 +0000
(17:02 +0000)
compiler/deSugar/Match.lhs
patch
|
blob
|
history
diff --git
a/compiler/deSugar/Match.lhs
b/compiler/deSugar/Match.lhs
index
aa2e9fe
..
1775562
100644
(file)
--- a/
compiler/deSugar/Match.lhs
+++ b/
compiler/deSugar/Match.lhs
@@
-280,13
+280,13
@@
match vars@(v:_) ty eqns
= ASSERT( not (null eqns ) )
do { -- Tidy the first pattern, generating
-- auxiliary bindings if necessary
= ASSERT( not (null eqns ) )
do { -- Tidy the first pattern, generating
-- auxiliary bindings if necessary
- (aux_binds, tidy_eqns) <- mapAndUnzipM (tidyEqnInfo v) eqns
+ (aux_binds, tidy_eqns) <- mapAndUnzipM (tidyEqnInfo v) eqns
-- Group the equations and match each group in turn
-- Group the equations and match each group in turn
- ; let grouped = groupEquations tidy_eqns
+ ; let grouped = groupEquations tidy_eqns
-- print the view patterns that are commoned up to help debug
-- print the view patterns that are commoned up to help debug
- ; ifDOptM Opt_D_dump_view_pattern_commoning (debug grouped)
+ ; ifDOptM Opt_D_dump_view_pattern_commoning (debug grouped)
; match_results <- mapM match_group grouped
; return (adjustMatchResult (foldr1 (.) aux_binds) $
; match_results <- mapM match_group grouped
; return (adjustMatchResult (foldr1 (.) aux_binds) $