[Haskell-beginners] What's wrong with Haddock?!

Francesco Ariis fa-ml at ariis.it
Thu Oct 26 12:32:10 UTC 2017


On Thu, Oct 26, 2017 at 02:58:43PM +0300, Baa wrote:
> @Francesco:
> 
> I tried it (added extension InstanceSigs, added "^.."-style docstring),
> nothing changed. So, may be docstrings in instances are impossible at
> whole? May be it makes sense... May be they should be documented in its
> classes instead?

Mhhh indeed you are correct, I tried to replicate and while haddock
doesn't complain, it doesn't output anything for the implemented
functions.

Maybe a workaround could be:

    -- | Prova
    instance Fun Foo where
      fun :: a
      fun = undefined

This will put text on the right of the /instance declaration/.


More information about the Beginners mailing list