[Haskell-cafe] Haddock multiple definitions

Mateusz Kowalczyk fuuzetsu at fuuzetsu.co.uk
Fri Aug 16 09:22:54 CEST 2013


On 16/08/13 08:16, Mateusz Kowalczyk wrote:
> In the future, please try with more recent version of GHC.
>
> This is no longer a parse error with HEAD or 7.6.3. Instead, given
>
>  -- | 'y' and 'x' are here
>  (x, y) = (1, 2)
>
> you get documentation generated for ‘x’ and Haddock doesn't seem to
> have any idea where to link ‘y’ (but it does know it's in scope &c). I
> think this behaviour is understandable considering that ‘x’ is the
> first ‘function’ after Haddock comments so the comment belongs to ’x’.
> If you want a different behaviour, please file an enhancement request
> against a recent version to have it considered.
>

I would like to add onto this that we can actually get the Haddock
documentation generated for ‘y’ by exporting it in the module and then
we can easily link to it, you're simply not getting the Haddock
comment along.

> I don't understand your concern over privacy in this case: you're
> getting a lot more exposure just posting on café than you ever would
> by posting directly on the low-traffic Haddock Trac. You're free to
> register with a temporary e-mail.
>
> http://trac.haskell.org/haddock

Apologies for consecutive posts.

--
Mateusz K.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0x2ADA9A97.asc
Type: application/pgp-keys
Size: 5619 bytes
Desc: not available
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20130816/a345d244/attachment.key>


More information about the Haskell-Cafe mailing list