Record wildcard
Simon Peyton-Jones
simonpj at microsoft.com
Mon Feb 5 06:59:15 EST 2007
| > Here's the complete record wildcard patch.
|
| Just to clarify, does ghc still accept the traditional record puns (in
| both expressions and patterns) from Haskell 1.3, and this patch merely
| augments puns to include wildcards? Or are wildcarded-puns the only
| kind that ghc now accepts?
Good qn. At the moment GHC does not accept
f (C {f,g,h}) = ...
but it's arguably a useful half-way house between
f (C {f=f,g=g,h=h}) = ...
and
f (C {..}) = ...
Simon
More information about the Cvs-ghc
mailing list