
#14848: -XDuplicateRecordFields breaks record expression splices -------------------------------------+------------------------------------- Reporter: dailectic | Owner: adamgundry Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.2.2 Resolution: | Keywords: ORF Operating System: Linux | Architecture: x86_64 Type of failure: GHC rejects | (amd64) valid program | Test Case: Blocked By: | Blocking: Related Tickets: #11103 | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by adamgundry): * owner: (none) => adamgundry Comment:
The least invasive option might be to extend `NameFlavour` with a new constructor for field names, which would be rather like `NameG` but would carry the selector name.
I've tried this, and it looks like a relatively straightforward change (although we may need an equivalent to `NameL` as well, I'm not sure yet). Will propose a patch. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14848#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler