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   |   Facebook   |   LinkedIn(spammy, so I often miss messages here)   |   Github