Add Control.Monad.IO.Class from transformers to base
(As proposed in a Haskell libraries mailing list thread here).
This Trac issue addresses one of the two suggestions made in the proposal, i.e., moving Control.Monad.IO.Class
from transformers
to base
. (The second, introducing a MonadIO Q
instance in template-haskell
, can be dealt with depending on the result of this.)
Conceptually, this change is very similar in spirit to #9664 (closed)—the MonadIO
class is a Haskell98 typeclass that has proven to be widely useful in abstracting IO
-based functions into a type signature that can be used with monad transformer stacks. Moving MonadIO
's module into base
would allow more widespread use without incurring a transformers
dependency, and it could provide a first step for generalizing more base
functions from IO
to MonadIO
.
Trac metadata
Trac field | Value |
---|---|
Version | 7.10.2 |
Type | FeatureRequest |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Core Libraries |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | core-libraries-committee@haskell.org, ekmett, hvr, ross, simonpj |
Operating system | |
Architecture |