[GHC] #15235: GHCi's claim of infixr 0 (->) is a lie

GHC ghc-devs at haskell.org
Thu Oct 4 23:38:29 UTC 2018


#15235: GHCi's claim of infixr 0 (->) is a lie
-------------------------------------+-------------------------------------
        Reporter:  RyanGlScott       |                Owner:  (none)
            Type:  bug               |               Status:  patch
        Priority:  normal            |            Milestone:  8.8.1
       Component:  Compiler          |              Version:  8.4.3
      Resolution:                    |             Keywords:  newcomer
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:  #15236            |  Differential Rev(s):  Phab:D5199
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by Ryan Scott <ryan.gl.scott@…>):

 In [changeset:"251e3424a96986fca5164a2397783a1c066558fc/ghc"
 251e3424/ghc]:
 {{{
 #!CommitTicketReference repository="ghc"
 revision="251e3424a96986fca5164a2397783a1c066558fc"
 Set `infixr -1 ->`

 Summary:
 This simply makes explicit what is already the case. Due to special
 treatment in the parser, `->` has the lowest fixity. This patch propagates
 that information to:

   * GHCi, where `:info ->` now return the right fixity
   * TH, where `reifyFixity` returns the right fixity
   * the generated sources for `GHC.Prim`

 See #15235.

 Test Plan: make test

 Reviewers: bgamari, alanz, RyanGlScott

 Reviewed By: RyanGlScott

 Subscribers: int-index, RyanGlScott, rwbarton, mpickering, carter

 GHC Trac Issues: #15235

 Differential Revision: https://phabricator.haskell.org/D5199
 }}}

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


More information about the ghc-tickets mailing list