Skip to content

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

Description

@sjakobi

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions