Empty Show instance + phantom type + GHCi = out of memory
module ShowMemory where
data M a = M
instance Show a => Show (M a)
Load in GHCi, type "M" and then enter at the prompt.
It kills all my memory. I have no .ghci
Trac metadata
Trac field | Value |
---|---|
Version | 6.12.2 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | GHCi |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |