Closed
Description
I tried to load a file (using cabal repl) and the message buffer just said it was compiling a file without changing (when it's normally instant). The interactive buffer never said anything.
When I looked at the process log, this was the contents:
/home/ivan/Haskell/paraphrase/src/Text/Paraphrase/Types.hs:(336,47)-(337,78):
Couldn't match expected type ‘ParseError s -> Result s r’
with actual type ‘Result s r’
Relevant bindings include
e :: ParseLog s
(bound at /home/ivan/Haskell/paraphrase/src/Text/Paraphrase/Types.hs:334:31)
pSt' :: ParseState s
(bound at /home/ivan/Haskell/paraphrase/src/Text/Paraphrase/Types.hs:334:26)
fl' :: ParseState s -> ParseLog s -> ParseError s -> Result s r
(bound at /home/ivan/Haskell/paraphrase/src/Text/Paraphrase/Types.hs:334:22)
sc' :: ParseState s -> a -> Result s r
(bound at /home/ivan/Haskell/paraphrase/src/Text/Paraphrase/Types.hs:343:22)
restoreAdd :: ParseState s -> ParseState s
(bound at /home/ivan/Haskell/paraphrase/src/Text/Paraphrase/Types.hs:346:22)
sc :: Success s a r
(bound at /home/ivan/Haskell/paraphrase/src/Text/Paraphrase/Types.hs:333:29)
(Some bindings suppressed; use -fmax-relevant-binds=N or -fno-max-relevant-binds)
In the expression:
mergeIncremental pSt pSt' $ \\ pSt'' -> runP p2 pSt'' fl sc
In an equation for ‘fl'’:
fl' pSt' e
| isCommitted pSt' = failure (restoreAdd pSt') e
| otherwise
= mergeIncremental pSt pSt' $ \\ pSt'' -> runP p2 pSt'' fl sc
In the expression:
let
fl' pSt' e
| isCommitted pSt' = failure (restoreAdd pSt') e
| otherwise = mergeIncremental pSt pSt' $ \\ pSt'' -> ...
sc' pSt' = sc (restoreAdd pSt')
restoreAdd pSt' = pSt' {add = add pSt <> add pSt'}
in ignoreAdditional pSt $ \\ pSt' -> runP p1 pSt' fl' sc'
It seems for some reason this error couldn't be parsed/recognised; I don't know if it's the error type or its length.
Metadata
Metadata
Assignees
Labels
No labels