packages feed

int-like 0.1.2 → 0.1.3

raw patch · 5 files changed

+6/−6 lines, 5 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

+ IntLike.Equiv: instance GHC.Classes.Ord k => GHC.Classes.Ord (IntLike.Equiv.IntLikeEquiv k v)
+ IntLike.Graph: instance GHC.Classes.Ord (IntLike.Graph.IntLikeGraph x)
+ IntLike.Map: instance GHC.Classes.Ord a => GHC.Classes.Ord (IntLike.Map.IntLikeMap x a)
+ IntLike.Set: instance GHC.Classes.Ord (IntLike.Set.IntLikeSet x)

Files

int-like.cabal view
@@ -1,11 +1,11 @@ cabal-version: 1.12 --- This file has been generated from package.yaml by hpack version 0.36.0.+-- This file has been generated from package.yaml by hpack version 0.37.0. -- -- see: https://github.com/sol/hpack  name:           int-like-version:        0.1.2+version:        0.1.3 synopsis:       Newtype wrappers over IntSet and IntMap description:    Please see the README on GitHub at <https://github.com/ejconlon/int-like#readme> category:       Data Structures
src/IntLike/Equiv.hs view
@@ -25,7 +25,7 @@   { fwdView :: !(IntLikeMultiMap k v)   , bwdView :: !(IntLikeMap v k)   }-  deriving stock (Eq, Show, Generic)+  deriving stock (Eq, Ord, Show, Generic)   deriving anyclass (NFData)  empty :: IntLikeEquiv k v
src/IntLike/Graph.hs view
@@ -27,7 +27,7 @@ import qualified IntLike.Set as ILS  newtype IntLikeGraph x = IntLikeGraph {unIntLikeGraph :: AdjacencyIntMap}-  deriving newtype (Eq, Show, NFData)+  deriving newtype (Eq, Ord, Show, NFData)  instance Coercible x Int => Graph (IntLikeGraph x) where   type Vertex (IntLikeGraph x) = x
src/IntLike/Map.hs view
@@ -36,7 +36,7 @@  newtype IntLikeMap x a = IntLikeMap {unIntLikeMap :: IntMap a}   deriving stock (Show, Traversable)-  deriving newtype (Eq, Functor, Foldable, NFData, Semigroup, Monoid)+  deriving newtype (Eq, Ord, Functor, Foldable, NFData, Semigroup, Monoid)  empty :: IntLikeMap x a empty = IntLikeMap IntMap.empty
src/IntLike/Set.hs view
@@ -34,7 +34,7 @@  newtype IntLikeSet x = IntLikeSet {unIntLikeSet :: IntSet}   deriving stock (Show)-  deriving newtype (Eq, NFData, Semigroup, Monoid)+  deriving newtype (Eq, Ord, NFData, Semigroup, Monoid)  empty :: IntLikeSet x empty = IntLikeSet IntSet.empty