Set `infixr -1 ->`
authorAlec Theriault <alec.theriault@gmail.com>
Thu, 4 Oct 2018 22:13:28 +0000 (18:13 -0400)
committerRyan Scott <ryan.gl.scott@gmail.com>
Thu, 4 Oct 2018 22:13:29 +0000 (18:13 -0400)
commit251e3424a96986fca5164a2397783a1c066558fc
tree071158649a5071ff1ddadd0d7aa0b84b3cff9dac
parentba163c3b3502df039e589c5bb0bc9ea767267b2a
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
compiler/basicTypes/BasicTypes.hs
compiler/parser/Parser.y
compiler/parser/RdrHsSyn.hs
compiler/prelude/primops.txt.pp
docs/users_guide/glasgow_exts.rst
testsuite/tests/ghci/scripts/T8535.stdout
testsuite/tests/ghci/scripts/ghci020.stdout
testsuite/tests/ghci/should_run/T10145.stdout
testsuite/tests/th/T10704.stdout
utils/genprimopcode/Main.hs