Make the Div and Mod type families `infixl 7`
authorRyan Scott <ryan.gl.scott@gmail.com>
Sun, 7 Jan 2018 18:05:13 +0000 (13:05 -0500)
committerBen Gamari <ben@smart-cactus.org>
Sun, 7 Jan 2018 18:48:59 +0000 (13:48 -0500)
commit303106d55d75a9c796e58867cb541ad136bb217f
treed55f8af2c0b6e68c573f8ff31b91edae227f12ad
parent40cbab9afe52fbc780310e880912b56370065a62
Make the Div and Mod type families `infixl 7`

Commit fa8035e3ee83aff5a20fc5e7e2697bac1686d6a6 added `Div`
and `Mod` type families to `GHC.TypeNats`. However, they did not add
the corresponding fixities! Currently, we have that both `div` and
`mod` (at the value level) are `infixl 7`, so we should adopt the
same fixities for the type-level `Div` and `Mod` as well.

Test Plan: It compiles

Reviewers: hvr, bgamari

Reviewed By: bgamari

Subscribers: rwbarton, thomie, carter

GHC Trac Issues: #14640

Differential Revision: https://phabricator.haskell.org/D4291
libraries/base/GHC/TypeNats.hs