Send Beginners mailing list submissions to
[email protected]
To subscribe or unsubscribe via the World Wide Web, visit
http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
or, via email, send a message with subject or body 'help' to
[email protected]
You can reach the person managing the list at
[email protected]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Beginners digest..."
Today's Topics:
1. Re: What's wrong with Haddock?! (Francesco Ariis)
2. Re: What's wrong with Haddock?! (Baa)
----------------------------------------------------------------------
Message: 1
Date: Thu, 26 Oct 2017 14:32:10 +0200
From: Francesco Ariis <[email protected]>
To: [email protected]
Subject: Re: [Haskell-beginners] What's wrong with Haddock?!
Message-ID: <[email protected]>
Content-Type: text/plain; charset=us-ascii
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/.
------------------------------
Message: 2
Date: Thu, 26 Oct 2017 16:02:44 +0300
From: Baa <[email protected]>
To: [email protected]
Subject: Re: [Haskell-beginners] What's wrong with Haddock?!
Message-ID: <20171026160244.2e84e551@Pavel>
Content-Type: text/plain; charset=US-ASCII
@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
> [email protected]
> http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
------------------------------
Subject: Digest Footer
_______________________________________________
Beginners mailing list
[email protected]
http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
------------------------------
End of Beginners Digest, Vol 112, Issue 25
******************************************