[email protected]
[Top] [All Lists]

Re: [Haskell-cafe] Fighting the monad stack, MonadIO

Subject: Re: [Haskell-cafe] Fighting the monad stack, MonadIO
From: Derek Elkins
Date: Thu, 10 Apr 2008 19:32:29 -0500
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.

Haskell-Cafe mailing list
[email protected]

<Prev in Thread] Current Thread [Next in Thread>