Ticket #259 (new defect)

Opened 15 months ago

Last modified 15 months ago

Hoogle backend drops documentation for type class fields.

Reported by: Fūzetsu Owned by: Fūzetsu
Priority: major Milestone:
Version: Keywords:
Cc: ndmitchell@…

Description

Originally reported by Neil Mitchel in ticket #168.

Input:

module NoTypeClassDocs where

-- | Docs for typeclass Foo
class BUG1 a  where
    -- | Doc for 'bar' field of 'Foo'
    bar :: Integer -> a

Output

-- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/

@package main

module NoTypeClassDocs

-- | Docs for typeclass <a>Foo</a>
class Foo a
bar :: Foo a => Integer -> a

Expected(?):

-- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/

@package main

module NoTypeClassDocs

-- | Docs for typeclass <a>Foo</a>
class Foo a
-- | Doc for <a>bar</a> field of <a>Foo</a>
bar :: Foo a => Integer -> a

Change History

Changed 15 months ago by Fūzetsu

Oops, the input was meant to be

module NoTypeClassDocs where

-- | Docs for typeclass 'Foo'
class Foo a where
    -- | Doc for 'bar' field of 'Foo'
    bar :: Integer -> a
Note: See TracTickets for help on using tickets.