Deriving Foldable doesn't work
I was trying out the Foldable deriving in GHC HEAD (see ticket #2953 (closed)). fold gave a stack space overflow. -ddump-deriv shows that the wrong foldr is being used:
{ GHC.Base.foldr f_aat z_aav (Main.Nil) = z_aav,
This is easy to fix but isn't it strange that there's no compile error?
Trac metadata
Trac field | Value |
---|---|
Version | 6.11 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Compiler |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |