haskell / haddock

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

Same line Haddock documentation #1605

Closed liamzee closed 4 months ago

liamzee commented 1 year ago

Perhaps this is just an issue with HLS, but right now, if I put out a type signature of, say,

foo :: a -> b

and I wish to put in -- ^ or -- | for short same-line annotation, HLS won't acknowledge that the function is type-signature commented.

I assume the same applies to Haddock proper. Shouldn't we have a feature allowing quick haddock documentation on the same line as the type signature?