As a matter of pure speculation, how big an impact would it have if, in
the next version of Haskell, Strings were represented as opaque types
with appropriate functions to convert to and from [Char]? Would there be
rioting in the streets?
Andrew Bromage
I would complain. I don't care much
-Original Message-
From: Simon Marlow [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 12, 2003 7:03 AM
To: Wojtek Moczydlowski; [EMAIL PROTECTED]
Subject: RE: A bug
The attached program, after compilation under ghc 6.0.1
with -O2 -package
wx under Windows, after
Consider the following program:
module A where
import Control.Monad.State
f :: StateT Int IO ()
f = (sequence_ $ repeat $ return ())
t = runStateT f 0
When t is evaluated under ghci or hugs, the program quickly runs out of heap
memory. What's going on here? Is this inherent in StateT monad?
The attached program, after compilation under ghc 6.0.1 with -O2 -package
wx under Windows, after about 1 minute running on 2Ghz computer crashes
with the message: Internal error: RHS exhausted max heap size (...) report
this as a bug.
Wojtek
SG.hs
Description: Binary data
Main.hs