[commit: containers] master: Generalize IntMap.update{Min, Max}[WithKey]. (4c0a002)
Paolo Capriotti
p.capriotti at gmail.com
Tue May 8 00:54:53 CEST 2012
Repository : ssh://darcs.haskell.org//srv/darcs/packages/containers
On branch : master
http://hackage.haskell.org/trac/ghc/changeset/4c0a00252dea5a3eecfddda6cf0bd8d93f2d9561
>---------------------------------------------------------------
commit 4c0a00252dea5a3eecfddda6cf0bd8d93f2d9561
Author: Milan Straka <fox at ucw.cz>
Date: Wed Dec 7 19:54:43 2011 +0100
Generalize IntMap.update{Min,Max}[WithKey].
Previously these methods were given an argument of type
[Key ->] a -> a
Now they are given an argument of type
[Key ->] a -> Maybe a
That makes them compatible with Map counterparts.
Data/IntMap/Base.hs | 36 ++++++++++++++++++++++--------------
Data/IntMap/Strict.hs | 36 ++++++++++++++++++++++--------------
tests/intmap-properties.hs | 12 ++++++++----
3 files changed, 52 insertions(+), 32 deletions(-)
Diff suppressed because of size. To see it, use:
git show 4c0a00252dea5a3eecfddda6cf0bd8d93f2d9561
More information about the Cvs-libraries
mailing list