stable-maps 0.0.1 → 0.0.2
raw patch · 3 files changed
+11/−4 lines, 3 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
+ System.Mem.StableName.Dynamic.Map: find :: DynamicStableName -> Map v -> v
+ System.Mem.StableName.Dynamic.Map: findWithDefault :: v -> DynamicStableName -> Map v -> v
+ System.Mem.StableName.Dynamic.Map: insertWith' :: (a -> a -> a) -> DynamicStableName -> a -> Map a -> Map a
+ System.Mem.StableName.Dynamic.Map: lookup :: DynamicStableName -> Map v -> Maybe v
+ System.Mem.StableName.Map: data Map f
Files
System/Mem/StableName/Dynamic/Map.hs view
@@ -7,7 +7,10 @@ , notMember , insert , insertWith-+ , insertWith'+ , lookup+ , find+ , findWithDefault ) where import qualified Prelude@@ -15,7 +18,6 @@ import System.Mem.StableName.Dynamic import qualified Data.IntMap as IntMap import Data.IntMap (IntMap)-import Unsafe.Coerce (unsafeCoerce) newtype Map a = Map { getMap :: IntMap [(DynamicStableName, a)] }
System/Mem/StableName/Map.hs view
@@ -1,5 +1,6 @@ module System.Mem.StableName.Map - ( empty+ ( Map+ , empty , null , singleton , member
stable-maps.cabal view
@@ -1,5 +1,5 @@ Name: stable-maps-Version: 0.0.1+Version: 0.0.2 Synopsis: Heterogeneous maps keyed by StableNames Description: Provides an API for inserting heterogeneous data in a collection keyed by StableNames and for later retrieving it. Homepage: http://github.com/ekmett/stable-maps@@ -10,6 +10,10 @@ Category: Math Build-type: Simple Cabal-version: >=1.6++source-repository head+ type: git+ location: git://github.com/ekmett/stable-maps.git Library Exposed-modules: System.Mem.StableName.Map