Skip to content

Instantly share code, notes, and snippets.

@imeredith
Created April 18, 2014 02:24
Show Gist options
  • Save imeredith/11021697 to your computer and use it in GitHub Desktop.
Save imeredith/11021697 to your computer and use it in GitHub Desktop.
src/Main.hs:39:20:
No instance for (MonadReader
MyEnv (ActionT TL.Text (ReaderT MyEnv IO)))
arising from the 'deriving' clause of a data type declaration
Possible fix:
add an instance declaration for
(MonadReader MyEnv (ActionT TL.Text (ReaderT MyEnv IO)))
or use a standalone 'deriving instance' declaration,
so you can specify the instance context yourself
When deriving the instance for (MonadReader MyEnv MyMonad)
data MyEnv = MyEnv{abcd :: T.Text}
newtype MyMonad a = MyMonad (ActionT TL.Text (ReaderT MyEnv IO) a)
deriving (Monad, MonadReader MyEnv)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment