[Haskell-cafe] Haddock infix constructors in markup

Ozgur Akgun ozgurakgun at gmail.com
Mon Apr 26 12:15:02 EDT 2010


Hi all,

If I have the following data type:

data Expr = Num Int | Expr :+: Expr | Expr :-: Expr

Haddock handles the infix constructors, and generates a very nice output
(html in this case)
However when I try to reference to one of the infix constructors in the
markup of other functions it fails to hyperlink.

-- | If the input is 'Num' does magic, if it is ':+:' does even more magic!
someFunc :: Expr -> Expr

In the output of this markup, the 'Num' is hyperlinked but the ':+:' is not.
Is there a different syntax for infix constructors (and for infix functions
presumably) or does haddock simple lack this feature?

Best,

-- 
Ozgur Akgun
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20100426/e4f372ce/attachment.html


More information about the Haskell-Cafe mailing list