Re: [Haskell-cafe] Monad.Reader with updates

2008-11-06 Thread Bulat Ziganshin
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

[Haskell-cafe] Monad.Reader with updates

2008-11-06 Thread Mauricio
Hi, 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"? I imagine something that instead of running like this: runReader ( do ... ) environment I would run like: runReader ( do ... ) environm