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

Fails to build on ghc 9.2.1 #1496

Closed
danwdart opened this issue Dec 15, 2021 · 2 comments · Fixed by #1555
Closed

Fails to build on ghc 9.2.1 #1496

danwdart opened this issue Dec 15, 2021 · 2 comments · Fixed by #1555

Comments

@danwdart
Copy link

It's related to the FlexibleContexts bug that got fixed. E.g.:

[ 4 of 31] Compiling Servant.API.ContentTypes ( src/Servant/API/ContentTypes.hs, dist/build/Servant/API/ContentTypes.o, dist/build/Servant/API/ContentTypes.dyn_o )

src/Servant/API/ContentTypes.hs:185:10: error:
    • Non type-variable argument
        in the constraint: AllMimeRender (ct : cts) a
      (Use FlexibleContexts to permit this)
    • In the instance declaration for ‘AllCTRender (ct : cts) a’
    |
185 |          (Accept ct, AllMime cts, AllMimeRender (ct ': cts) a) => AllCTRender (ct ': cts) a where
    |          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

src/Servant/API/ContentTypes.hs:281:10: error:
    • Non type-variable argument
        in the constraint: AllMimeRender (ctyp' : ctyps) a
      (Use FlexibleContexts to permit this)
    • In the instance declaration for
        ‘AllMimeRender (ctyp : ctyp' : ctyps) a’
    |
281 |          ( MimeRender ctyp a
    |          ^^^^^^^^^^^^^^^^^^^...

src/Servant/API/ContentTypes.hs:302:10: error:
    • Non type-variable argument
        in the constraint: AllMime (ctyp : ctyp' : ctyps)
      (Use FlexibleContexts to permit this)
    • In the instance declaration for
        ‘AllMimeRender (ctyp : ctyp' : ctyps) NoContent’
    |
302 |          ( AllMime (ctyp ': ctyp' ': ctyps)
@georgefst
Copy link

See #1482

@danwdart
Copy link
Author

Thanks for updating!

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

Successfully merging a pull request may close this issue.

2 participants