
#14307: NamedFieldPuns should allow "ambiguous" field names -------------------------------------+------------------------------------- Reporter: mgsloan | Owner: (none) Type: feature request | Status: closed Priority: low | Milestone: Component: Compiler | Version: 8.2.1 Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: | rename/should_fail/T14307 Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by simonpj):
Perhaps the error message could mention the extension since it's a rarer one?
That's a good idea, but as the code stands it would be fiddly to implement. I had a look at the tricky logic in `RnEnv.lookupSubBndrOcc_helper` and backed off. Surely this code can be made more perspicuous! If anyone wants to have a go I'd be happy to help. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14307#comment:7 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler