Advertisement
NLinker

Can't make a derived instance of ‘MonadBaseControl IO A’

Nov 26th, 2015
222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. newtype A a = A { runA :: StateT Int IO a } deriving (MonadBaseControl IO)
  2.  
  3. -- src/Main.hs:23:55-73: Can't make a derived instance of ‘MonadBaseControl IO A’
  4. --       (even with cunning newtype deriving):
  5. --       the class has associated types
  6. --     In the newtype declaration for ‘A’
  7. -- Compilation failed.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement