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

Error with liftIO #3

Open
michaelmesser opened this issue May 24, 2017 · 0 comments
Open

Error with liftIO #3

michaelmesser opened this issue May 24, 2017 · 0 comments

Comments

@michaelmesser
Copy link

f :: IO (Either () ())
f = runM $ runError $ liftIO $ putStrLn "Hello"
Couldn't match type Data.Type.Equality.EqArrow (Exc ()) m0
                 with 'False
    arising from a use of liftIO
  The type variable m0 is ambiguous
In the second argument of ($), namely
    liftIO $ putStrLn "Hello"
  In the second argument of ($), namely
    runError $ liftIO $ putStrLn "Hello"
  In the expression: runM $ runError $ liftIO $ putStrLn "Hello"
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

1 participant