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

Doesn't lift transformers #3

Open
isovector opened this issue Feb 10, 2020 · 0 comments
Open

Doesn't lift transformers #3

isovector opened this issue Feb 10, 2020 · 0 comments

Comments

@isovector
Copy link
Owner

class Monad m => MonadIRC m where
  recvNewMessage :: Stream (Of RecvMsg) m ()
makeImprovised ''MonadIRC

=>

      recvNewMessage                                                                                     
        = improvised-0.1.0.0:Test.Improvised.Internal.Improvisable                                       
            (Control.Monad.Trans.Reader.ReaderT                                                          
               (\ r_ar4F -> __recvNewMessage (getMonadIRCImprovised r_ar4F)))  

error:

     Couldn't match expected type Stream
                                      (Of RecvMsg) (Improvisable dict m) ()
                  with actual type Improvisable dict0 (Stream (Of RecvMsg) m0) ()
     In the expression:
        improvised-0.1.0.0:Test.Improvised.Internal.Improvisable
          (Control.Monad.Trans.Reader.ReaderT
             (\ r_ar4F -> __recvNewMessage (getMonadIRCImprovised r_ar4F)))
      In an equation for recvNewMessage’:
          recvNewMessage
            = improvised-0.1.0.0:Test.Improvised.Internal.Improvisable
                (Control.Monad.Trans.Reader.ReaderT
                   (\ r_ar4F -> __recvNewMessage (getMonadIRCImprovised r_ar4F)))
      In the instance declaration for MonadIRC (Improvisable dict m)
     Relevant bindings include
        recvNewMessage :: Stream (Of RecvMsg) (Improvisable dict m) ()
          (bound at /home/sandy/prj/sdcp/code/irc/src/Effects.hs:25:1)
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