API Annotations question
Alan & Kim Zimmerman
alan.zimm at gmail.com
Thu Jan 15 13:33:48 UTC 2015
This has come up in the review of D538 too. Once processed by haddock the
online documentation links through to the hsSyn/ApiAnnotation module where
more detail is given.
I am not sure what the best way is to add an internal source code link to
it too without disturbing the haddock. I am open for suggestions.
Alan
On Thu, Jan 15, 2015 at 3:16 PM, Jan Stolarek <jan.stolarek at p.lodz.pl>
wrote:
> Alan, devs,
>
> since API annotations were added some data types in the source code have
> extra comments related to
> these annotations, eg.
>
> -- | A type or class declaration.
> data TyClDecl name
> = -- | @type/data family T :: *->*@
> --
> -- - 'ApiAnnotation.AnnKeywordId' : 'ApiAnnotation.AnnType',
> -- 'ApiAnnotation.AnnData',
> -- 'ApiAnnotation.AnnFamily','ApiAnnotation.AnnWhere',
> -- 'ApiAnnotation.AnnOpen','ApiAnnotation.AnnDcolon',
> -- 'ApiAnnotation.AnnClose'
> FamDecl { tcdFam :: FamilyDecl name }
>
> I'm totally clueless about what these comments mean. Where can I find an
> explanation? Couldn't
> find anything on the wiki.
>
> Janek
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/ghc-devs/attachments/20150115/ff01614e/attachment.html>
More information about the ghc-devs
mailing list