packages feed

hashmap 1.2.0.0 → 1.2.0.1

raw patch · 4 files changed

+15/−9 lines, 4 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

CHANGES view
@@ -1,3 +1,9 @@+= Version 1.2.0.1, 2011-09-21 =+* Add missing StandaloneDeriving and DeriveDataTypeable+GHC extensions to enable Typeable deriving. Also remove+PatternGuards extension, which was needed only once.++ = Version 1.2.0.0, 2011-05-08 = ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ * Rename HashMap and HashSet to Map and Set.
Data/HashMap.hs view
@@ -1,5 +1,3 @@-{-# LANGUAGE CPP, PatternGuards #-}- ----------------------------------------------------------------------------- -- | -- Module      :  Data.HashMap@@ -572,8 +570,9 @@ isSubmapOfBy f (Map m1) (Map m2) =   I.isSubmapOfBy some_isSubmapOfBy m1 m2   where some_isSubmapOfBy (Only k x) (Only l y) = k `eq` l && x `f` y-        some_isSubmapOfBy (Only k x) (More t) | Just y <- M.lookup k t = f x y-                                              | otherwise              = False+        some_isSubmapOfBy (Only k x) (More t) = case M.lookup k t of+                                                  Just y -> f x y+                                                  _      -> False         some_isSubmapOfBy (More _) (Only _ _) = False         some_isSubmapOfBy (More t) (More u)   = M.isSubmapOfBy f t u 
Data/HashSet.hs view
@@ -1,6 +1,3 @@-{-# LANGUAGE CPP #-}-{-# OPTIONS -Wall #-}- ----------------------------------------------------------------------------- -- | -- Module      :  Data.HashSet
hashmap.cabal view
@@ -1,5 +1,5 @@ Name:                hashmap-Version:             1.2.0.0+Version:             1.2.0.1 Synopsis:            Persistent containers Map and Set based on hashing. Description:         An implementation of persistent 'Map' and 'Set' containers                      based on hashing. The implementation is build on@@ -25,7 +25,7 @@ Stability:           Provisional Category:            Data Build-type:          Simple-Cabal-version:       >= 1.2+Cabal-version:       >= 1.6 Extra-source-files:  CHANGES  Library@@ -34,3 +34,7 @@   Build-depends:     base >= 4.0 && < 5,                      containers >= 0.3,                      hashable >= 1.0++  Extensions:        CPP+  if impl(ghc)+    Extensions:      StandaloneDeriving, DeriveDataTypeable