ANNOUNCE: GHC version 7.2.1 - {-# LANGUAGE NoTraditionalRecordSyntax #-}
AntC
anthony_clayden at clear.net.nz
Tue Mar 27 00:47:14 CEST 2012
>
Ian Lynagh <igloo <at> earth.li> writes:
>
> =============================================================
> The (Interactive) Glasgow Haskell Compiler -- version 7.2.1
> =============================================================
>
Ticket #3356 claims that {-# LANGUAGE NoTraditionalRecordSyntax #-} was
implemented in 7.2.1.
But GHCi v7.2.1 complains "Unsupported extension: NoTraditionalRecordSyntax".
What (if anything) actually got implemented?
Is/was the plan to be able to selectively 'prune' bits of record syntax? or
just to completely banish anything with curly brackets {and their contents}
from patterns, expressions and data declarations?
I ask because I'd like to raise a ticket for
http://hackage.haskell.org/trac/ghc/wiki/Records/DeclaredOverloadedRecordFields
/NoMonoRecordFields -- that is, to enable declaring within the same module
multiple record types with the same field name.
Of course it will also help when declaring the same field name in different
(but imported) modules.
Avoiding generating the (monomorphic) field selector function is a modest step
towards freeing up the namespace, without in any way pre-judging how
the 'narrow namespace issue' might get addressed.
AntC
More information about the Glasgow-haskell-users
mailing list