[Haskell-cafe] Monad.Reader with updates

Bulat Ziganshin bulat.ziganshin at gmail.com
Thu Nov 6 06:46:12 EST 2008

Hello Mauricio,

Thursday, November 6, 2008, 2:30:00 PM, you wrote:

> Is there some abstraction in current ghc library
> that implements something like Reader, but where
> the value of the environment is updated at every
> "step"?

do-it-yourself? you can start from reader definition and add what you
need. you just need to make "initial state" consisting from state
itself and update function so `run` will have just one initialization argument

Best regards,
 Bulat                            mailto:Bulat.Ziganshin at gmail.com

More information about the Haskell-Cafe mailing list