Skip to content

Unreasonable memory usage on large data structures

I have attached a file that, when compiled, results in very large amount of memory usage by GHC.

The memory used is in the order of tens of gigabytes, but I've not been able to successfully compile the file due to lack of physical memory.

This is on Debian GNU/Linux (Jessie) using Haskell Platform 2014.2.0.0 with GHC 7.8.3.

Trac metadata
Trac field Value
Version 7.8.3
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Compiler
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information