[haddock] #69: Errors with class members

haddock haddock at projects.haskell.org
Mon Jan 26 08:25:35 EST 2009


#69: Errors with class members
-------------------------+--------------------------------------------------
Reporter:  NeilMitchell  |        Owner:       
    Type:  defect        |       Status:  new  
Priority:  major         |    Milestone:  2.4.2
 Version:  2.5.0         |   Resolution:       
Keywords:                |  
-------------------------+--------------------------------------------------
Comment (by waern):

 Replying to [comment:7 waern]:
 > Reply from Simon Marlow (off-Trac):
 >
 > "The idea is that Haddock simply documents each entity in the export
 list in the order that the entities occur.  If you have duplicates in the
 export list, then you get duplicate entries in the documentation too.
 Record fields and class methods aren't any different from other entities
 in this respect.  I think this is consistent behaviour, and if you don't
 want it you can always change the export list."

 I agree with this, but in this particular case, the record fields are not
 duplicated in the export list,  because the class is exported abstractly.
 When exporting a class abstractly, and its fields separately, the fields
 are added to the class definition in the documentation, *and* shown at the
 top level.

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


More information about the Haddock mailing list