Skip to content

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

@peterbecich

Description

@peterbecich

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions