Ticket #144 (new enhancement)

Opened 3 years ago

Last modified 8 months ago

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

Changed 8 months ago by anonymous

  • milestone 2.7.0 deleted

Milestone 2.7.0 deleted

Note: See TracTickets for help on using tickets.