Ticket #144 (new enhancement)
Allow -- ^ comment on record constructor
| Reported by: | heatsink | Owned by: | |
|---|---|---|---|
| Priority: | major | Milestone: | |
| Version: | 2.6.1 | Keywords: | |
| Cc: |
Description
This enhancement would add flexibility to the commenting style for record constructors. Accept a -- ^ comment between a constructor and its fields, meaning the same as a -- | comment before the constructor. The example below is rejected as a parse error due to the comment on 'Branch'.
-- | A tree with labeled internal nodes
data Tree =
Empty -- ^ Leaf
| Branch -- ^ Internal node
{ label :: a -- ^ Node label
, subtrees :: [Tree] -- ^ List of subtrees
}
Change History
Note: See
TracTickets for help on using
tickets.
