packages feed

bimap 0.3.2 → 0.3.3

raw patch · 2 files changed

+6/−2 lines, 2 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

+ Data.Bimap: instance (GHC.Classes.Ord a, GHC.Classes.Ord b) => GHC.Classes.Ord (Data.Bimap.Bimap a b)

Files

Data/Bimap.hs view
@@ -89,6 +89,7 @@  import           Control.Monad.Catch +import           Data.Function       (on) import           Data.List           (foldl', sort) import qualified Data.Map            as M import           Data.Maybe          (fromMaybe)@@ -111,7 +112,10 @@     show x = "fromList " ++ (show . toList $ x)  instance (Eq a, Eq b) => Eq (Bimap a b) where-    (==) bx by = toAscList bx == toAscList by+    (==) = (==) `on` toAscList++instance (Ord a, Ord b) => Ord (Bimap a b) where+    compare = compare `on` toAscList  {-| A 'Bimap' action failed.
bimap.cabal view
@@ -1,6 +1,6 @@ cabal-version:       >= 1.8 name:                bimap-version:             0.3.2+version:             0.3.3 synopsis:            Bidirectional mapping between two key types description:   A data structure representing a bidirectional mapping between two