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