Infinite loop when compiling Haskell '98 code
Ghci (6.12.3 and 7.0.0) loops when it tries to compile this code:
data Loop = CLoop (Loop -> ())
loop_step :: Loop -> ()
loop_step b@(CLoop f) = f b
loop :: ()
loop = loop_step (CLoop loop_step)
It works fine when I change Loop into a newtype.
Trac metadata
Trac field | Value |
---|---|
Version | 6.12.3 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Compiler |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |