[commit: packages/containers] cleaned_bugfix394, master, merge-doc-target, merge-fixes-5.9, merge-restrict-fix-5.8, revert-408-bugfix_394: Add restrictKeys and withoutKeys (f90ab2f)

git at git.haskell.org git at git.haskell.org
Mon Apr 17 21:44:26 UTC 2017


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

On branches: cleaned_bugfix394,master,merge-doc-target,merge-fixes-5.9,merge-restrict-fix-5.8,revert-408-bugfix_394
Link       : http://git.haskell.org/packages/containers.git/commitdiff/f90ab2ff8b78fd16a7486f643b54ff0d11a0c021

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

commit f90ab2ff8b78fd16a7486f643b54ff0d11a0c021
Author: David Feuer <David.Feuer at gmail.com>
Date:   Tue Jul 26 00:05:06 2016 -0400

    Add restrictKeys and withoutKeys
    
    * Add `restrictKeys` and `withoutKeys` to `Data.Map` and
    `Data.IntMap`.
    
    * Add tests for the defining properties of these operations.


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

f90ab2ff8b78fd16a7486f643b54ff0d11a0c021
 Data/IntMap/Base.hs        | 89 ++++++++++++++++++++++++++++++++++++++++++++++
 Data/IntMap/Lazy.hs        |  2 ++
 Data/IntMap/Strict.hs      |  2 ++
 Data/Map/Base.hs           | 60 +++++++++++++++++++++++++++++--
 Data/Map/Lazy.hs           |  2 ++
 Data/Map/Strict.hs         |  2 ++
 Data/Set/Base.hs           |  6 ++--
 Data/Utils/StrictMaybe.hs  | 21 +++++++++++
 changelog.md               |  3 +-
 containers.cabal           |  1 +
 tests/intmap-properties.hs | 26 ++++++++++----
 tests/map-properties.hs    | 28 +++++++++++----
 12 files changed, 222 insertions(+), 20 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 f90ab2ff8b78fd16a7486f643b54ff0d11a0c021


More information about the ghc-commits mailing list