Skip to content

Allow unnamed record fields

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.

Trac metadata
Trac field Value
Version
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component HaskellPrime
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information