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

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

Open
sjakobi opened this issue Oct 11, 2021 · 0 comments

Comments

@sjakobi
Copy link

sjakobi commented Oct 11, 2021

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
    |        ^^^^^^^^^^^^^^^^^^^
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