[Haskell-cafe] Re: Library design question
andre at digirati.com.br
Sat Sep 20 11:46:48 EDT 2008
On Sat, 2008-09-20 at 14:56 +0200, Daniel Fischer wrote:
> > modify' f = do
> > s <- get
> > put $! f s
> Or try Control.Monad.State.Strict.
Control.Monad.State.Strict did it for me, but the strict modify didn't.
I tried using modify' and also
randomDouble = do
g <- get
let (r, g') = random g
put $! g'
randomDouble = State random
Any hints on how I could find where else the program is being too lazy?
More information about the Haskell-Cafe