ghc struggles to compile a large case statement
I'm trying to compile a pronunciation dictionary (cmudict) into an application. I'm first converting the dictionary into haskell source, and then trying to compile it.
After about 7 minutes of compiling, ghc's memory usage was in the gigabytes and causing the computer to start heavily swap.
Attached is self contained generated source file.
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 |
Edited by espringe