[Haskell-cafe] Question on nested State monads.

David Banas capn.freako at gmail.com
Sun Dec 29 02:24:51 UTC 2013


Hi all,

If I want to use a second, nested State monad inside another State monad, must I thread the outer monad’s state through the processing of the inner one, even if the inner one falls out of scope before I return from the processing body of the outer one?

Thanks,
-db



More information about the Haskell-Cafe mailing list