strictness of interpreted haskell implementations

Don Stewart dons at galois.com
Fri Apr 25 12:08:49 EDT 2008


Geraint.Jones:
> Are there well-known differences in the implementations of Haskell in
> ghci and hugs?  I've got some moderately intricate code (simulations
> of pipelined processors) that behave differently - apparently because
> ghci Haskell is stricter than hugs Haskell, and I cannot find any 
> obviously relevant claims about strictness in the documentation.

Hugs does no optimisations, while GHC does a truckload, including
strictness analysis. Some of these optimisations prevent space leaks.

You might want to also check with ghc -Onot , ghc -O2 (esp. if
performance matters).

-- Don


More information about the Glasgow-haskell-users mailing list