
25 Apr
2008
25 Apr
'08
12:08 p.m.
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