Haddock can't parse data declaration involving operator

Simon Marlow simonmar at microsoft.com
Mon May 10 12:10:59 EDT 2004

On 09 May 2004 15:07, Stefan Reich wrote:

> I hope this is the right place to ask about Haddock problems?
> I'm using Haddock 0.6 (RedHat RPM module) under RedHat 9. When I
> invoke haddock on this file (Op.hs):
> 	module Op where
> 	infixl 4 :=
> 	data a := b = a := b
> I get the error "Op.hs:Illegal data/newtype declaration".
> Is this a known problem?
> Asking more broadly - maybe there is another tool that does what I
> need: I just want an overview of all my modules including their
> exported identifiers and all type signatures (including inferred
> signatures). 

This is a GHC extension that Haddock doesn't support (unfortunately).
I'll add it to the ToDo list...


More information about the Glasgow-haskell-users mailing list