[commit: ghc] master: Add more type class instances for GHC.Generics (673efcc)

git at git.haskell.org git at git.haskell.org
Thu Feb 25 14:40:49 UTC 2016


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/673efccb3b348e9daf23d9e65460691bbea8586e/ghc

>---------------------------------------------------------------

commit 673efccb3b348e9daf23d9e65460691bbea8586e
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


>---------------------------------------------------------------

673efccb3b348e9daf23d9e65460691bbea8586e
 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 673efccb3b348e9daf23d9e65460691bbea8586e


More information about the ghc-commits mailing list