[commit: ghc] master: Replace hand-written Bounded instances with derived ones (5965117)
git at git.haskell.org
git at git.haskell.org
Sat Jun 4 21:56:26 UTC 2016
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/59651173a52e2400f965e38acd0beb9d0cc14cfe/ghc
>---------------------------------------------------------------
commit 59651173a52e2400f965e38acd0beb9d0cc14cfe
Author: Ryan Scott <ryan.gl.scott at gmail.com>
Date: Sat Jun 4 17:59:47 2016 -0400
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
>---------------------------------------------------------------
59651173a52e2400f965e38acd0beb9d0cc14cfe
libraries/base/Data/Proxy.hs | 6 +-
libraries/base/Data/Semigroup.hs | 30 ++-----
libraries/base/Data/Type/Coercion.hs | 4 +-
libraries/base/Data/Type/Equality.hs | 4 +-
libraries/base/GHC/Enum.hs | 150 ++++++++++++-----------------------
5 files changed, 58 insertions(+), 136 deletions(-)
Diff suppressed because of size. To see it, use:
git diff-tree --root --patch-with-stat --no-color --find-copies-harder --ignore-space-at-eol --cc 59651173a52e2400f965e38acd0beb9d0cc14cfe
More information about the ghc-commits
mailing list