[GHC] #12050: Allow haddock comments on non-record types

GHC ghc-devs at haskell.org
Thu May 12 15:35:05 UTC 2016


#12050: Allow haddock comments on non-record types
-------------------------------------+-------------------------------------
           Reporter:  bgamari        |             Owner:
               Type:  feature        |            Status:  new
  request                            |
           Priority:  normal         |         Milestone:
          Component:  Compiler       |           Version:  7.10.3
  (Parser)                           |
           Keywords:                 |  Operating System:  Unknown/Multiple
       Architecture:                 |   Type of failure:  None/Unknown
  Unknown/Multiple                   |
          Test Case:                 |        Blocked By:
           Blocking:                 |   Related Tickets:
Differential Rev(s):                 |         Wiki Page:
-------------------------------------+-------------------------------------
 There are a variety of cases
 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,
 {{{#!hs
 data Foo = Foo      -- ^ A foo
              Int    -- ^ how big is the foo?
              String -- ^ the name of the foo
 }}}

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/12050>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list