[Haskell-cafe] Haddock infix constructors in markup

Ozgur Akgun ozgurakgun at gmail.com
Tue Apr 27 05:17:29 EDT 2010


I shouldn't have choosen Num for the constructor name, it led to confusions
apparently.
You can replace tha Num with anything you want, doesn't change the
situation.
I mean, it's not the problematic part.

Is there any news about the fix in the lexer? When can we use it?

On 27 April 2010 00:52, Ivan Miljenovic <ivan.miljenovic at gmail.com> wrote:

> On 27 April 2010 02:15, Ozgur Akgun <ozgurakgun at gmail.com> wrote:
> > data Expr = Num Int | Expr :+: Expr | Expr :-: Expr
> >
> > [snip]
> >
> > -- | 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.
>
> I would hazard a guess that the Num hyperlink points to the Num
> typeclass in the Prelude rather than your Num constructor.  As for
> your infix constructor, I have no idea.
>
> --
> Ivan Lazar Miljenovic
> Ivan.Miljenovic at gmail.com
> IvanMiljenovic.wordpress.com
>



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


More information about the Haskell-Cafe mailing list