[Haskell-beginners] What's wrong with Haddock?!
Baa
aquagnu at gmail.com
Thu Oct 26 13:02:44 UTC 2017
@Francesco: yes, it is. OK, it's a workaround :)
Thank you!
> 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/.
> _______________________________________________
> Beginners mailing list
> Beginners at haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
More information about the Beginners
mailing list