Compiling large source files

Serge D. Mechveliani mechvel at
Tue Aug 4 08:30:33 EDT 2009

On Tue, Aug 04, 2009 at 09:12:37AM +0100, Simon Marlow wrote:
> I suggest not using Haskell for your list.  Put the data in a file and 
> read it at runtime, or put it in a static C array and link it in.
> On 03/08/2009 22:09, G?nther Schmidt wrote:
> >Hi Thomas,
> >yes, a source file with a single literal list with 85k elements.

when a program only defines and returns a String constant of  n  
literals, how much memory needs ghc-6.10.4 to compile it ?
O(n), or may be O(n^2), or ...


Serge Mechveliani
mechvel at

More information about the Glasgow-haskell-users mailing list