#2320: Rename RecordPuns extension to NamedFieldPuns
------------------------+---------------------------------------------------
    Reporter:  duncan   |       Owner:          
        Type:  bug      |      Status:  new     
    Priority:  normal   |   Component:  Compiler
     Version:  6.8.2    |    Severity:  normal  
    Keywords:           |    Testcase:          
Architecture:  Unknown  |          Os:  Unknown 
------------------------+---------------------------------------------------
 The `NamedFieldPuns` has been around for ages. It's in the original Cabal
 design spec in the extension list. It was implemented in nhc98 for yonks
 (with the flag `-puns`). In older ghc it was enables with `-frecord-puns`.

 In ghc-6.8 we split up the `-fglasgow-exts` flag into lots of separate
 named extensions. We added an extension `RecordPuns` for the thing that
 `-frecord-puns` had enabled previously not realising that there was
 already an older name for the same thing, namely `NamedFieldPuns`.

 So I propose that ghc moves to using the standard extension
 `NamedFieldPuns` and keeps `RecordPuns` as a deprecated alias for
 `NamedFieldPuns`. Cabal can fix things up so that for ghc-6.8 it maps the
 `NamedFieldPuns` extension to `-frecord-puns` or `-XRecordPuns`.

 The moral of the story here is that all the extensions in
 Language.Haskell.Extensions should be well documented in that module. For
 one thing that'd serve as a useful reference for users, but also for
 compiler hackers to pick consistent names for the same concepts between
 implementations.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2320>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to