[GHC] #11167: Fixity of field-deconstructors incorrect
GHC
ghc-devs at haskell.org
Sat Dec 5 20:24:13 UTC 2015
#11167: Fixity of field-deconstructors incorrect
-------------------------------------+-------------------------------------
Reporter: hvr | Owner: kanetw
Type: bug | Status: new
Priority: highest | Milestone: 8.0.1
Component: Compiler | Version: 7.11
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture:
| Unknown/Multiple
Type of failure: None/Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by kanetw):
Ok, so the source of the problem lies in RnExpr.hs:`rnExpr (OpApp ...)`,
there's a missing case for when we have a record field.
But now we've got a problem. We're running this during renaming, so we
don't have the corresponding `Id` yet, only a `Name`. If the record field
is `Unambiguous`, that's not a problem -- `PostRn Name Name = Name`. But
if it's `Ambiguous`, `PostTc Name Name = PlaceHolder`, i.e. we have no way
of getting the name.
The `Unambiguous` case is easy, and that'd solve this ticket. But we need
to deal with the `Ambiguous` case, too.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11167#comment:5>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list