haskell-graphql / graphql-api

Write type-safe GraphQL services in Haskell
BSD 3-Clause "New" or "Revised" License
406 stars 35 forks source link

Build error in `src/GraphQL/Internal/Syntax/Parser.hs`: No instance for (ConvertText Text ByteString) #228

Open sjakobi opened 3 years ago

sjakobi commented 3 years ago

I'm seeing this build error with GHC 8.6.5:

src/GraphQL/Internal/Syntax/Parser.hs:167:8: error:
    • No instance for (ConvertText Text ByteString)
        arising from a use of ‘unescapeText’
    • In the expression: unescapeText parsed
      In a stmt of a 'do' block:
        case unescapeText parsed of
          Left err -> fail err
          Right escaped -> pure (AST.StringValue escaped)
      In the expression:
        do parsed <- char '"' *> jstring_
           case unescapeText parsed of
             Left err -> fail err
             Right escaped -> pure (AST.StringValue escaped)
    |
167 |   case unescapeText parsed of
    |        ^^^^^^^^^^^^^^^^^^^