[commit: packages/containers] changelog-foldtree, cleaned_bugfix394, master, merge-doc-target, merge-fixes-5.9, merge-restrict-fix-5.8, revert-408-bugfix_394: Implement lens-compatible `at` function (73ba96a)

git at git.haskell.org git at git.haskell.org
Mon Apr 17 21:40:50 UTC 2017


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

On branches: changelog-foldtree,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/73ba96ade09b2e1720d529566c7bf834cd54853c

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

commit 73ba96ade09b2e1720d529566c7bf834cd54853c
Author: Phil Ruffwind <rf at rufflewind.com>
Date:   Sun Mar 27 20:49:35 2016 -0400

    Implement lens-compatible `at` function
    
    Akin to `alter` but allows an arbitrary Functor.
    Add benchmarks for `at`
    Add tests for `at`
    Add `at` from Lens to benchmarks for comparison


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

73ba96ade09b2e1720d529566c7bf834cd54853c
 Data/Map/Base.hs        | 22 ++++++++++++++++++++++
 Data/Map/Lazy.hs        |  1 +
 Data/Map/Strict.hs      |  1 +
 benchmarks/Map.hs       | 49 +++++++++++++++++++++++++++++++++++++++++++++++++
 containers.cabal        |  4 ++++
 tests/map-properties.hs | 25 +++++++++++++++++++++++++
 6 files changed, 102 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 73ba96ade09b2e1720d529566c7bf834cd54853c


More information about the ghc-commits mailing list