So, how can we make use of this fix?

On 26 April 2010 19:47, David Waern <[email protected]> wrote:

> 2010/4/26 Daniel Fischer <[email protected]>:
> > Am Montag 26 April 2010 18:15:02 schrieb Ozgur Akgun:
> >> 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?
> >
> > Infix functions work fine (try referring to e.g. '&&' in the haddock
> > comment), but infix constructors apparently not.
>
> Yes, I actually fixed this a few weeks ago in Haddock's lexer. Colon
> was just not included in the character set for identifiers.
>
> David
> _______________________________________________
> Haskell-Cafe mailing list
> [email protected]
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>



-- 
Ozgur Akgun
_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to