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:
57605cf
)
Derived Foldable instances should use Data.Foldable.foldr
author
m.niloc@gmail.com
<unknown>
Sat, 11 Jul 2009 13:06:47 +0000
(13:06 +0000)
committer
m.niloc@gmail.com
<unknown>
Sat, 11 Jul 2009 13:06:47 +0000
(13:06 +0000)
compiler/typecheck/TcGenDeriv.lhs
patch
|
blob
|
history
diff --git
a/compiler/typecheck/TcGenDeriv.lhs
b/compiler/typecheck/TcGenDeriv.lhs
index
5ae17d7
..
f940e16
100644
(file)
--- a/
compiler/typecheck/TcGenDeriv.lhs
+++ b/
compiler/typecheck/TcGenDeriv.lhs
@@
-1475,7
+1475,7
@@
gen_Foldable_binds loc tycon
where
data_cons = tyConDataCons tycon
- foldr_bind = L loc $ mkFunBind (L loc foldr_RDR) (map foldr_eqn data_cons)
+ foldr_bind = L loc $ mkFunBind (L loc foldable_foldr_RDR) (map foldr_eqn data_cons)
foldr_eqn con = evalState (match_for_con z_Expr [f_Pat,z_Pat] con parts) bs_RDRs
where
parts = foldDataConArgs ft_foldr con