Skip to content

Allow haddock comments on non-record types

There are a variety of cases where I have found myself wanting to place haddock documentation on fields of non-record data types rather often in the past. The syntax for this might look like,

data Foo = Foo      -- ^ A foo
             Int    -- ^ how big is the foo?
             String -- ^ the name of the foo
Edited by Ben Gamari
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information