[Haskell] ANNOUNCE: GHC version 7.2.1 - {-# LANGUAGE NoTraditionalRecordSyntax #-}

AntC anthony_clayden at clear.net.nz
Mon Mar 26 23:00:59 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?

I ask because I'd like to raise a ticket for 
/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 goes a little 
way towards freeing up the namespace, without in any way pre-judging how 
the 'narrow namespace issue' might get addressed.


More information about the Haskell mailing list