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 while compiling servant-client-0.20.2 #1783

Open
saurabhnanda opened this issue Sep 22, 2024 · 0 comments
Open

Error while compiling servant-client-0.20.2 #1783

saurabhnanda opened this issue Sep 22, 2024 · 0 comments

Comments

@saurabhnanda
Copy link

I'm on ghc-8.10.7 and got the following error (downgrading to servant-client-0.20 solved the issue, for now, at least):

servant-client > /tmp/stack-f7661c0549ae3b6c/servant-client-0.20.2/src/Servant/Client/Internal/HttpClient.hs:137:60: error:
servant-client >     * No instance for (Generic
servant-client >                          (ReaderT ClientEnv (ExceptT ClientError IO) a))
servant-client >         arising from the 'deriving' clause of a data type declaration
servant-client >       Possible fix:
servant-client >         use a standalone 'deriving instance' declaration,
servant-client >           so you can specify the instance context yourself
servant-client >     * When deriving the instance for (Generic (ClientM a))
servant-client >     |
servant-client > 137 |   deriving newtype ( Functor, Applicative, Monad, MonadIO, Generic
servant-client >     |                                                            ^^^^^^^
servant-client > 
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