[haddock] #69: Errors with class members

haddock haddock at projects.haskell.org
Tue Dec 23 07:12:26 EST 2008

#69: Errors with class members
Reporter:  NeilMitchell  |       Owner:       
    Type:  defect        |      Status:  new  
Priority:  major         |   Milestone:  2.5.0
 Version:  2.5.0         |    Keywords:       
 Given the files:

 -- Boo.hs
 module Boo where

 class Boo a  where
     boo1, boo2, boo3 :: a
     boo4 :: a

 -- Test.hs
 module Test(Boo, boo1, boo2, boo3, boo4) where
 import Boo

 $ haddock --html Test.hs Boo.hs

 I would expect Haddock to infer that there is one class with 4 methods.
 Instead it infers that there is one class (Boo), two methods (boo1, boo4)
 and two top-level functions (boo1, boo4). Haddock seems to get confused by
 the boo1,boo2,boo3 comma separated identifiers. The incorrect top-level
 functions may be a symptom of the same bug, or may be a separate bug.

 This issue causes the GHC documentation not to include {{{even}}}, {{{tan}
 and lots of others. It also mess up Hoogle. I'd mark this as priority

 All using the latest HEAD Haddock with GHC 6.10.1.

Ticket URL: <http://trac.haskell.org/haddock/ticket/69>
haddock <http://www.haskell.org/haddock>
Haddock, The Haskell Documentation Tool

More information about the Haddock mailing list