[commit: ghc] master: Add various instances to newtypes in Data.Monoid (4e6bcc2)
git at git.haskell.org
git at git.haskell.org
Tue Mar 3 13:25:57 UTC 2015
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/4e6bcc2c8134f9c1ba7d715b3206130f23c529fb/ghc
>---------------------------------------------------------------
commit 4e6bcc2c8134f9c1ba7d715b3206130f23c529fb
Author: Oleg Grenrus <oleg.grenrus at iki.fi>
Date: Tue Mar 3 07:21:43 2015 -0600
Add various instances to newtypes in Data.Monoid
Summary:
Add Functor instances for Dual, Sum and Product
Add Foldable instances for Dual, Sum and Product
Add Traversable instances for Dual, Sum and Product
Add Foldable and Traversable instances for First and Last
Add Applicative, Monad instances to Dual, Sum, Product
Add MonadFix to Data.Monoid wrappers
Derive Data for Identity
Add Data instances to Data.Monoid wrappers
Add Data (Alt f a) instance
Reviewers: ekmett, dfeuer, hvr, austin
Reviewed By: dfeuer, austin
Subscribers: thomie
Differential Revision: https://phabricator.haskell.org/D673
GHC Trac Issues: #10107
>---------------------------------------------------------------
4e6bcc2c8134f9c1ba7d715b3206130f23c529fb
libraries/base/Control/Monad/Fix.hs | 18 ++++
libraries/base/Data/Data.hs | 113 ++++++++++++++++++++-
libraries/base/Data/Foldable.hs | 60 +++++++++++
libraries/base/Data/Monoid.hs | 33 ++++++
libraries/base/Data/Traversable.hs | 16 +++
.../tests/annotations/should_fail/annfail10.stderr | 25 +++--
.../tests/ghci.debugger/scripts/break006.stderr | 22 ++--
testsuite/tests/typecheck/should_fail/T5095.stderr | 15 +++
8 files changed, 281 insertions(+), 21 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 4e6bcc2c8134f9c1ba7d715b3206130f23c529fb
More information about the ghc-commits
mailing list