[commit: ghc] master: Add Data.Semigroup and Data.List.NonEmpty (re #10365) (03b3804)

git at git.haskell.org git at git.haskell.org
Fri Oct 2 06:23:24 UTC 2015


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

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/03b380428c128b12aef07a9b67341803ef0bea76/ghc

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

commit 03b380428c128b12aef07a9b67341803ef0bea76
Author: Herbert Valerio Riedel <hvr at gnu.org>
Date:   Sun Sep 27 12:01:41 2015 +0200

    Add Data.Semigroup and Data.List.NonEmpty (re #10365)
    
    This implements phase 1 of the semigroup-as-monoid-superclass
    proposal (https://ghc.haskell.org/wiki/Proposal/SemigroupMonoid).
    
    The modules were migrated from the `semigroups-0.17` release mostly
    as-is, except for dropping several trivial `{-# INLINE #-}`s,
    removing CPP usage, and instances for types & classes provided
    outside of `base` (e.g. `containers`, `deepseq`, `hashable`, `tagged`,
    `bytestring`, `text`)
    
    Differential Revision: https://phabricator.haskell.org/D1284


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

03b380428c128b12aef07a9b67341803ef0bea76
 libraries/base/Data/List/NonEmpty.hs | 522 ++++++++++++++++++++++++++++
 libraries/base/Data/Semigroup.hs     | 640 +++++++++++++++++++++++++++++++++++
 libraries/base/base.cabal            |   2 +
 libraries/base/changelog.md          |   4 +
 4 files changed, 1168 insertions(+)

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 03b380428c128b12aef07a9b67341803ef0bea76


More information about the ghc-commits mailing list