haddock
haddock copied to clipboard
parse failure: invalid doc after constructor
haddock fails to parse a file that has an invalid doc comment after a constructor.
module Main where
main = print "hi"
data Foo = Bar Int {- | Docs -}
Indeed, it's rather unfortunate that the error isn't better.
In upcoming GHC 9.0 release, this will just be a warning instead of an error.