[Haskell-cafe] lifting between two StateT monads
dmhouse at gmail.com
Sat Jul 1 06:26:49 EDT 2006
Apologies to Alexander for the multiple copies, I forgot to hit 'Reply
to all' again.
On 01/07/06, Alexander Vodomerov <alex at sectorb.msk.ru> wrote:
> I've looked through StateT documentation and tutorial, but had not found
> any function from StateT X to StateT Y where Y is not the same as X.
Try runState. You'd need to grab the state in your g computation, then
runState f with the nth part of Y.
-David House, dmhouse at gmail.com
More information about the Haskell-Cafe