[Haskell-cafe] Fighting the monad stack, MonadIO

Derek Elkins derek.a.elkins at gmail.com
Thu Apr 10 20:32:29 EDT 2008

On Thu, 2008-04-10 at 11:53 -0700, Adam Smyczek wrote:
> Thanks a lot for all explanations!
> It looks like 'ioAction' is the key to the solution
> and if the Browser module did not provide/expose
> this function, no IO actions could be run inside
> the BrowserAction monad?
> If yes, is this a general concept/pattern
> how to hide functionality of a underlying monad,
> in this case hide IO entirely?

Yes, only there is nothing particular to monads.  This would be just
utilizing a standard abstract data type.

More information about the Haskell-Cafe mailing list