Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
GHC
GHC
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 4,268
    • Issues 4,268
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
    • Iterations
  • Merge Requests 408
    • Merge Requests 408
  • Requirements
    • Requirements
    • List
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Security & Compliance
    • Security & Compliance
    • Dependency List
    • License Compliance
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI / CD
    • Code Review
    • Insights
    • Issue
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Glasgow Haskell Compiler
  • GHCGHC
  • Issues
  • #2320

Closed
Open
Opened May 29, 2008 by duncan@trac-duncan

Rename RecordPuns extension to NamedFieldPuns

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.

Trac metadata
Trac field Value
Version 6.8.2
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Compiler
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system Unknown
Architecture Unknown
Assignee
Assign to
6.10 branch
Milestone
6.10 branch
Assign milestone
Time tracking
None
Due date
None
Reference: ghc/ghc#2320