Skip to content

Named field punning for Haskell 2011

I'd like to propose that we add named-field punning to Haskell 2011. More concretely, I propose that we add pre-Haskell'98 style punning, combined with field disambiguation.

Implementation: These features are implemented in GHC, and can be enabled with -XNamedFieldPuns and -XDisambiguateRecordFields

Documentation: The features are described in Section 7.3.14 and Section 7.3.15 of the GHC User's Manual.

Edited by malcolm wallace
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information