MonadError, the errorful Monad transformer#185
MonadError, the errorful Monad transformer#185alrunner4 wants to merge 2 commits intoedwinb:masterfrom
Conversation
| public export | ||
| overIORef : IORef a -> ( a -> IOError e a ) -> IOError e a | ||
| overIORef ref xform = do | ||
| val <- lift( readIORef ref ) |
There was a problem hiding this comment.
Occurred to me: should lift be in scope, despite no import Control.Monad.Trans here, and no import public in Control.Monad.Error? I'm guessing that it's visible because it's part of an interface...?
|
There's a test failure here due to the prelude change (I should do something about the line number display there, it is fairly useless.) Still, I'm not sure this should be in (I know we have State and Trans in base too. Should we?) |
Utilities for working simply with mainly IO-threaded programs.