Skip to content

Placing a haddock line inbetween the module declaration and the imports results in a parse error #251

Closed
@appestat

Description

@appestat
module Error where
-- | test
import Prelude

results in a parse error in GHC, while

module Error where
-- test
import Prelude

does not. Furthermore,

module Error where
-- | test

also does not produce an error.
This is related to #167, but this is just a haddock line and not anything doctest specific. If it's not possible to fix like #167 should this be added to the readme as well?
Output of doctest --version:

doctest version 0.16.2
using version 8.6.5 of the GHC API
using /usr/local/Cellar/ghc/8.6.5/bin/ghc-8.6.5

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions