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

fix needed for GHC 9.2+ and Servant 0.19+ #46

Open
peterbecich opened this issue Nov 19, 2022 · 0 comments
Open

fix needed for GHC 9.2+ and Servant 0.19+ #46

peterbecich opened this issue Nov 19, 2022 · 0 comments

Comments

@peterbecich
Copy link
Contributor

With GHC 9.2+ and Servant 0.19+, errors like this occur:

src/Servant/API/BrowserHeader.hs:37:10: error:
    • Non type-variable argument
        in the constraint: HasContextEntry
                             (context .++ DefaultErrorFormatters) ErrorFormatters
      (Use FlexibleContexts to permit this)
    • In the instance declaration for
        ‘HasServer (BrowserHeader sym a :> sublayout) context’
   |
37 | instance ( KnownSymbol sym
   |          ^^^^^^^^^^^^^^^^^...

With GHC 9 and below, Servant 0.19 works.

@peterbecich peterbecich changed the title fix for GHC 9.2+ and Servant 0.19+ fix needed for GHC 9.2+ and Servant 0.19+ Nov 19, 2022
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