Am Mittwoch, 18. April 2007 19:29 schrieb Wolfgang Jeltsch:
Hello everybody,
I urgently need Haddock support for type operators like in the following code snippet:
infix 2 :::, := infixl 9 :.:
data name ::: value = name := value newtype Composition f g a = Composition { runComposition :: f (g a) } type (:.:) = Composition
Does anybody know whether this is easy to implement or whether there is a quick hack to make this work? Can I do the hacking myself or is deeper knowledge of the Haddock source code necessary to provide this feature?
Thank you in advance for any help.
Best wishes, Wolfgang
Hello again, after looking a bit at the source code and coming to the conclusion that it doesn’t look too scary ;-) , I’ve started to make the necessary modifications myself. The result of my hacking is attached as a darcs patch. Note that this is really a hack. One additional parser conflict is added. Neither the parser nor the renderer considers any fixity declarations. Infix operator applications are always rendered without parantheses. But for me it works! :-) Best wishes, Wolfgang