[Haskell-cafe] Re: The danger of Monad ((->) r)

Tomasz Zielonka tomasz.zielonka at gmail.com
Tue May 15 08:52:35 EDT 2007


On Tue, May 15, 2007 at 02:27:13PM +0200, Arie Peterson wrote:
> Hi Tomek!

Hi!

> Have you considered changing the statements to have type 'ReaderT Database
> IO ()'? Then (>>) actually does what you want.

I tried it and it made the code simpler, more readable and of course
more immune to this type of bugs. Thanks!

Pozdrawiam
Tomek


More information about the Haskell-Cafe mailing list