[Haskell-cafe] ghc -O2 out of memory

Kees Bleijenberg K.Bleijenberg at lijbrandt.nl
Sat Mar 7 18:58:25 UTC 2015


-----Oorspronkelijk bericht-----
Van: Haskell-Cafe [mailto:haskell-cafe-bounces at haskell.org] Namens Bardur
Verzonden: zaterdag 7 maart 2015 19:26
Aan: haskell-cafe at haskell.org
Onderwerp: Re: [Haskell-cafe] ghc -O2 out of memory

On 07-03-2015 16:56, Kees Bleijenberg wrote:
> I've written a program that reads a Excel file, parses the contents 
> and generates a haskell module. Every cell in the xls has it's own 
> function in the module. This worked fine.


Just out of curiousity, are you adding explicit type annotations? I imagine
that type inference (rather than just checking) would add considerable
overhead in pathological cases, especially if GHC is using a SAT-solver
based approach (which I believe it is, these days).

Yes.  Every cell is a top level function with a type annotation.  All cells
have the same type.
I was afraid that splitting the module doesn't help.


Haskell-Cafe mailing list
Haskell-Cafe at haskell.org

More information about the Haskell-Cafe mailing list