[Haskell-cafe] Re: Long running Haskell program

Matthew Pocock matthew.pocock at ncl.ac.uk
Thu Nov 12 06:53:29 EST 2009


How about:

instance (Monad m) => MonadState s (SStateT s m) where
    get = S get
    put s = S (put $ using s $ strategy m)

where our state monad has a strategy field?

Matthew
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20091112/da44149f/attachment.html


More information about the Haskell-Cafe mailing list