patch applied (ghc-6.10/haddock2): Fix #61

Ian Lynagh igloo at earth.li
Sun Jan 11 10:33:16 EST 2009


Thu Oct 16 13:58:42 PDT 2008  David Waern <david.waern at gmail.com>
  * Fix #61
  
  We were not getting docs for re-exported class methods. This was because we
  were looking up the docs in a map made from the declarations in the current
  module being rendered. Obviously, re-exported class methods come from another
  module.
  
  Class methods and ATs were the only thing we were looking up using the doc map,
  everything else we found in the ExporItems. So now I've put subordinate docs
  in the ExportItem's directly, to make things a bit more consistent.
  
  To do this, I added subordinates to the the declarations in the declaration
  map. This was easy since we were computing subordinates anyway, to store
  stand-alone in the map. I added a new type synonym 'DeclInfo', which is what we
  call what is now stored in the map. 
  
  This little refactoring removes duplicate code to retrieve subordinates and
  documentation from the HsGroup.

    M ./src/Haddock/Backends/Hoogle.hs -1 +1
    M ./src/Haddock/Backends/Html.hs -21 +21
    M ./src/Haddock/DocName.hs +1
    M ./src/Haddock/Interface/AttachInstances.hs -2 +2
    M ./src/Haddock/Interface/Create.hs -38 +49
    M ./src/Haddock/Interface/Rename.hs -4 +12
    M ./src/Haddock/Types.hs +3
    M ./tests/tests/Hidden.hs +2
    A ./tests/tests/Ticket61.hs
    A ./tests/tests/Ticket61.html.ref
    A ./tests/tests/Ticket61_Hidden.hs

View patch online:
http://darcs.haskell.org/ghc-6.10/haddock2/_darcs/patches/20081016205842-a762e-2d4123970c28027e0a9c3aa3e65471224867c3fc.gz


More information about the Cvs-other mailing list