int-like 0.2.0 → 0.3.0
raw patch · 2 files changed
+2/−2 lines, 2 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
- IntLike.Map: compose :: IntLikeMap x c -> IntMap Int -> IntLikeMap x c
+ IntLike.Map: compose :: forall x a c. Coercible x Int => IntLikeMap x c -> IntLikeMap a x -> IntLikeMap a c
Files
- int-like.cabal +1/−1
- src/IntLike/Map.hs +1/−1
int-like.cabal view
@@ -5,7 +5,7 @@ -- see: https://github.com/sol/hpack name: int-like-version: 0.2.0+version: 0.3.0 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/Map.hs view
@@ -411,7 +411,7 @@ disjoint = coerce (IntMap.disjoint @a @b) {-# INLINE disjoint #-} -compose :: forall x c. IntLikeMap x c -> IntMap Int -> IntLikeMap x c+compose :: forall x a c. (Coercible x Int) => IntLikeMap x c -> IntLikeMap a x -> IntLikeMap a c compose = coerce (IntMap.compose @c) {-# INLINE compose #-}