Running out of memory in a simple monad

Alastair Reid alastair@reid-consulting-uk.ltd.uk
18 Dec 2002 09:49:34 +0000


Simon Marlow <simonmar@microsoft.com> writes:
> Also, GHCi retains CAFs in the same way as Hugs, the difference is
> that GHCi can be configured to throw away the results after
> evaluation (:set +r).

If I set this flag, does GHCi discard CAFs during evaluation or at the
end of evaluation?  Or, to put it another way, do classic examples like

  module Main(main,primes) where

  main = print primes
  primes = ...

leak space?

--
Alastair