[GHC] #11167: Fixity of field-deconstructors incorrect

GHC ghc-devs at haskell.org
Sat Dec 5 20:44:34 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):

 I see a few possible solutions for the ambig. case:

 * Warn and default fixity to `defaultFixity = infixl 9`
 * Disallow infix usage of ambiguous record fields completely (abort with
 an error).
 * As long the fixity of each overloaded record is identical, use it.
 Otherwise do one of the above.

 I don't like any of these.

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11167#comment:6>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list