doctest icon indicating copy to clipboard operation
doctest copied to clipboard

Strange parse error when no import present

Open flip111 opened this issue 9 years ago • 0 comments

code:

-- |
-- prop> foo == 2
foo = 2

main = putStrLn "dummy"

shell:

» doctest Foo.hs

Foo.hs:3:1: parse error on input ‘foo’

This does not happen when the program start with import GHC.OldList (nub) see https://github.com/sol/doctest/issues/122 for that

flip111 avatar Jan 05 '16 17:01 flip111