8000 gtk2hs-buildtools | GHC 8.8: MonadFail build issue · Issue #264 · gtk2hs/gtk2hs · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
gtk2hs-buildtools | GHC 8.8: MonadFail build issue #264
Closed
@deepfire

Description

@deepfire
[30 of 46] Compiling CLexer           ( dist/build/CLexer.hs, dist/build/CLexer.o )

c2hs/c/CLexer.x:417:3: error:
    • No instance for (Control.Monad.Fail.MonadFail P)
        arising from a do statement
        with the failable pattern ‘(c : cs)’
      There are instances for similar types:
        instance Control.Monad.Fail.MonadFail
                   Text.ParserCombinators.ReadP.P
          -- Defined in ‘Text.ParserCombinators.ReadP’
    • In a stmt of a 'do' block: (c : cs) <- getInput
      In the expression:
        do pos <- getPos
           (c : cs) <- getInput
           failP
             pos
             ["Lexical error!",
              "The character " ++ show c ++ " does not fit here."]
      In an equation for ‘lexicalError’:
          lexicalError
            = do pos <- getPos
                 (c : cs) <- getInput
                 failP pos ["Lexical error!", ....]
    |
417 |   (c:cs) <- getInput
    |   ^^^^^^^^^^^^^^^^^^

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

      0