GHC 6.8.2 and large source files

Ian Lynagh igloo at
Mon Jun 2 10:52:36 EDT 2008

Hi Christian,

On Sun, Jun 01, 2008 at 09:55:06PM +0200, Christian Höner zu Siederdissen wrote:
> We now can compile into executable code some of these programs but the
> compiler requires an incredible amount of memory: the 15,000 line
> programs easily require 2 GByte of RAM and then the compiler dies.

We've been looking into similar problems recently, and hopefully GHC
6.10 will do better.

> Are there hints on how to compile large source files? Would it help, for
> example to compile each function on its own?

Yes, I expect so, although the sweet spot probably has several functions
per module.


More information about the Glasgow-haskell-users mailing list