Recommend using -M rather than -H to increase the heap size.
On Windows, there's an arbitrary limit of 256Mb due to the way memory
is allocated, which is the primary cause of running out of heap. On
Unix, the heap size is unlimited by default.
unsigned long heap_size)
/* both in bytes */
{
- fprintf(stderr, "GHC's heap exhausted: current limit is %lu bytes;\nUse the `-H<size>' option to increase the total heap size.\n",
+ fprintf(stderr, "GHC's heap exhausted: current limit is %lu bytes;\nUse the `-M<size>' option to increase the total heap size.\n",
heap_size);
}