-
Notifications
You must be signed in to change notification settings - Fork 52
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
Propagating MonadIO constraint downwards #96
Comments
doliftio :: MonadIO m => m ()
doliftio = liftIO (runM (liftIO (putStrLn "hello"))) or equivalently, change the type of doliftio :: IO ()
doliftio = runM (liftIO (putStrLn "hello")) |
A closely related question is why we only provide a I’m hoping that we’ll be able to resolve this a little more like typical monad transformer stacks where the |
I’m going to close this out now, tho the related issue of |
How does one use the underlying monad that is
MonadIO
-constrained usingrunM
?On the first approach it doesn't work (full exhibit at [1]):
..yields..
--
The text was updated successfully, but these errors were encountered: