Ertugrul Soeylemez <[email protected]> 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/
_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe