[Haskell-cafe] Re: simulation in the haskell way
Ertugrul Soeylemez
es at ertes.de
Tue Aug 18 09:49:50 EDT 2009
Ertugrul Soeylemez <es at ertes.de> wrote:
> computation :: State [Object] Result
> computation = do
> objs0 <- get
> (result, objs1) <- doSomethingWith objs0
> put objs1
> return result
Misindented, sorry. Again:
computation :: State [Object] Result
computation = do
objs0 <- get
(result, objs1) <- doSomethingWith objs0
put objs1
return result
Greets,
Ertugrul.
--
nightmare = unsafePerformIO (getWrongWife >>= sex)
http://blog.ertes.de/
More information about the Haskell-Cafe
mailing list