haddock icon indicating copy to clipboard operation
haddock copied to clipboard

parse failure: invalid doc after constructor

Open shapr opened this issue 5 years ago • 2 comments

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 -}

shapr avatar Apr 23 '20 16:04 shapr

Indeed, it's rather unfortunate that the error isn't better.

Kleidukos avatar Jan 04 '21 20:01 Kleidukos

In upcoming GHC 9.0 release, this will just be a warning instead of an error.

harpocrates avatar Jan 04 '21 21:01 harpocrates