[Haskell-cafe] Stack, Heap and GHC

Neil Mitchell ndmitchell at gmail.com
Thu Dec 14 21:04:36 EST 2006


Hi

> Did you compile with -O (optimisations). Sometimes this fixes things,
> and its just good practice.

It's slower to compile, and might fix things in GHC Haskell, but other
compilers don't all have -O flags, so its generally best to make your
program at least have the right sort of time/space behaviour using
Haskell. If your code doesn't work without -O, then it probably won't
work in Hugs or Yhc.

Thanks

Neil


More information about the Haskell-Cafe mailing list