Closed ryukzak closed 3 years ago
Maybe I am missing something, but I think that this is expected behavior. I created an example library exporting the input and the output, and the haddock of the input is indeed displayed at the return values, not at the constructors.
git clone --branch=gadt-haddock --single-branch https://github.com/amesgen/stuff
cd stuff
cabal haddock
# open the .html file displayed
I think technically those comments are attached to the return type Info a b
, not to the data constructors.
Describe the bug A haddock post-comment works wrong with GADTs.
To Reproduce Input:
Output:
Expected behavior
Environment