Opened 13 years ago

Last modified 4 years ago

#117 new enhancement

Allow unnamed record fields

Reported by: Ian Lynagh Owned by: none
Priority: normal Milestone:
Version: Keywords:
Cc: Meta Owner:
State: discussion Section: N/A or multiple
Related Tickets:

Description

It would be nice to be able to have unnamed fields in a record to save having to invent names for everything, e.g.

data Foo = Foo { _ :: Int, _ :: Char, pos :: Position }
         | Bar { _ :: String,         pos :: Position }

The Show instance would have to use the non-record syntax, but other than that I don't think there would be any problems.

Change History (3)

comment:1 Changed 13 years ago by Ian Lynagh

component: HaskellPrimeProposal
Owner: changed from ijones to none

comment:2 Changed 4 years ago by Herbert Valerio Riedel

Milestone:

moving non-milestoned many year old legacy tickets out of the way

comment:3 Changed 4 years ago by Herbert Valerio Riedel

Priority: minornormal

Set default priority (as this confuses Trac otherwise)

Note: See TracTickets for help on using tickets.