Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add MonadIO instance for MonadBaseControl IO #37

Closed
winterland1989 opened this issue Nov 28, 2016 · 4 comments
Closed

Add MonadIO instance for MonadBaseControl IO #37

winterland1989 opened this issue Nov 28, 2016 · 4 comments

Comments

@winterland1989
Copy link

winterland1989 commented Nov 28, 2016

Is it possible to have MonadIO m 's instance for MonadBaseControl IO m? I'm not sure, but i think doing so can save lots of instance declarations maybe.

@basvandijk
Copy link
Owner

I'm not sure what you mean. Do you mean that having the following instance would be convenient?

instance (MonadIO m) => MonadBase IO m where liftBase = liftIO

Maybe it's wise to add this "catch-all" instance to transformers-base. @mvv would this have any negative consequences?

@mvv
Copy link

mvv commented Dec 5, 2016

It would conflict with any other instance of MonadBase because of the FD m -> IO.

@winterland1989
Copy link
Author

That makes sense!

1 similar comment
@winterland1989
Copy link
Author

That makes sense!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants