[commit: ghc] ghc-8.0: Add more type class instances for GHC.Generics (1fcddf8)
git at git.haskell.org
git at git.haskell.org
Sat Feb 27 21:55:09 UTC 2016
Repository : ssh://git@git.haskell.org/ghc
On branch : ghc-8.0
Link : http://ghc.haskell.org/trac/ghc/changeset/1fcddf82d17feed714854fb351412736d61278d4/ghc
>---------------------------------------------------------------
commit 1fcddf82d17feed714854fb351412736d61278d4
Author: RyanGlScott <ryan.gl.scott at gmail.com>
Date: Thu Feb 25 14:49:48 2016 +0100
Add more type class instances for GHC.Generics
GHC.Generics provides several representation data types that have
obvious instances of various type classes in base, along with various
other types of meta-data (such as associativity and fixity).
Specifically, instances have been added for the following type classes
(where possible):
- Applicative
- Data
- Functor
- Monad
- MonadFix
- MonadPlus
- MonadZip
- Foldable
- Traversable
- Enum
- Bounded
- Ix
- Generic1
Thanks to ocharles for starting this!
Test Plan: Validate
Reviewers: ekmett, austin, hvr, bgamari
Reviewed By: bgamari
Subscribers: RyanGlScott, thomie
Differential Revision: https://phabricator.haskell.org/D1937
GHC Trac Issues: #9043
(cherry picked from commit 673efccb3b348e9daf23d9e65460691bbea8586e)
>---------------------------------------------------------------
1fcddf82d17feed714854fb351412736d61278d4
libraries/base/Control/Monad/Fix.hs | 18 ++
libraries/base/Control/Monad/Zip.hs | 15 +
libraries/base/Data/Bifunctor.hs | 4 +
libraries/base/Data/Data.hs | 309 ++++++++++++++++++++-
libraries/base/Data/Foldable.hs | 24 +-
libraries/base/Data/Traversable.hs | 24 +-
libraries/base/GHC/Generics.hs | 124 +++++++--
libraries/base/changelog.md | 5 +
.../tests/annotations/should_fail/annfail10.stderr | 2 +-
.../tests/ghci.debugger/scripts/break006.stderr | 4 +-
.../tests/typecheck/should_fail/T10971b.stderr | 8 +-
testsuite/tests/typecheck/should_fail/T5095.stderr | 2 +-
12 files changed, 505 insertions(+), 34 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 1fcddf82d17feed714854fb351412736d61278d4
More information about the ghc-commits
mailing list