[Haskell-cafe] Is this a GHC parser error? A test case compiles from one line but not another.
Jeffrey Brown
jeffbrown.the at gmail.com
Sat Sep 9 03:54:38 UTC 2017
The test suite below[1] does what it's supposed to. The last line of it is
a commented-out test case:
-- assertBool "broken" $ True
If I uncomment that, it fails to compile:
> :reload
[13 of 13] Compiling TParse ( test/TParse.hs, interpreted )
test/TParse.hs:67:3: error: parse error on input ‘assertBool’
|
67 | assertBool "broken" $ True
| ^^^^^^^^^^
Failed, 12 modules loaded.
>
However, if I move it to somewhere earlier in the code, it works.
[1]
https://github.com/JeffreyBenjaminBrown/digraphs-with-text/blob/e5afd39b950752ccb65997b89ab625d859299b4a/test/TParse.hs
--
Jeff Brown | Jeffrey Benjamin Brown
Website <https://msu.edu/~brown202/> | Facebook
<https://www.facebook.com/mejeff.younotjeff> | LinkedIn
<https://www.linkedin.com/in/jeffreybenjaminbrown>(spammy, so I often miss
messages here) | Github <https://github.com/jeffreybenjaminbrown>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20170908/75475459/attachment.html>
More information about the Haskell-Cafe
mailing list