haskell / haddock

Haskell Documentation Tool
www.haskell.org/haddock/
BSD 2-Clause "Simplified" License
362 stars 242 forks source link

Haddock comments to class arguments #1527

Open Lev135 opened 2 years ago

Lev135 commented 2 years ago

I would like to add a haddock comment to class arguments like this:

class C 
  (a :: Type) -- ^ comment to a
  (b :: Constraint) -- ^ comment to b
  where

or (with -XStandaloneKindSignatures)

type C
  :: Type -- ^ comment to a
  -> Constraint -- ^ comment to b
  -> Constraint
class C a b where

However, as far as I can see, it's not possible in current version