Stack overflow when optimizing recursive newtype
I have
module Bug where
newtype Void = Void Void
data Decision a = Disproved (a -> Void)
foo :: () -> Decision Int
foo _ = Disproved (\_ -> undefined)
When I
> ghc -O Bug.hs
I get
[1 of 1] Compiling Bug ( Bug.hs, Bug.o )
stack overflow: use +RTS -K<size> to increase it
The module compiles fine without -O
. This was tested on 7.7.20131011.
Trac metadata
Trac field | Value |
---|---|
Version | 7.7 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Compiler |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |