Replace hand-written Bounded instances with derived ones
authorRyan Scott <ryan.gl.scott@gmail.com>
Sat, 4 Jun 2016 21:59:47 +0000 (17:59 -0400)
committerRyan Scott <ryan.gl.scott@gmail.com>
Sat, 4 Jun 2016 21:59:48 +0000 (17:59 -0400)
commit59651173a52e2400f965e38acd0beb9d0cc14cfe
treebbcf735fdbf1a7f1975f37b3c5b887a2933016cf
parentb948a1da7a3929160cb7cb8d6cf2fe79c3081d0a
Replace hand-written Bounded instances with derived ones

Summary:
The spiritual successor to D2291, since deriving `Bounded` instances
in `GHC.Enum` wasn't possible prior to changes made in that Diff.

This Diff finds every manually implemented `Bounded` instance in `base` that is
completely equivalent to the derived instances, and replaces it.

Reviewers: bgamari, goldfire, austin, hvr

Reviewed By: austin, hvr

Subscribers: thomie, rwbarton

Differential Revision: https://phabricator.haskell.org/D2301
libraries/base/Data/Proxy.hs
libraries/base/Data/Semigroup.hs
libraries/base/Data/Type/Coercion.hs
libraries/base/Data/Type/Equality.hs
libraries/base/GHC/Enum.hs