ten-unordered-containers 0.1.0.1 → 0.1.0.2
raw patch · 3 files changed
+13/−9 lines, 3 filesdep ~portrayPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: portray
API changes (from Hackage documentation)
Files
- CHANGELOG.md +4/−0
- src/Data/Ten/HashMap.hs +5/−5
- ten-unordered-containers.cabal +4/−4
CHANGELOG.md view
@@ -5,3 +5,7 @@ # 0.1.0.1 * Extend support back to GHC 8.6.++# 0.1.0.2++* Support portray-0.2.
src/Data/Ten/HashMap.hs view
@@ -100,7 +100,7 @@ instance (Portray1 k, Entails k (Portray :!: m)) => Portray (HashMap10 k m) where- portray = Apply "fromList" . pure . portray . toList+ portray = Apply (Name "fromList") . pure . portray . toList data EntryDiff a = InLeft a | InBoth a a | InRight a @@ -111,9 +111,9 @@ diffM :: (Diff a, Portray a) => EntryDiff a -> ((Any, All), Maybe Portrayal) diffM e = diffToM $ case e of- InLeft x -> Just $ portray x `diffVs` "_"+ InLeft x -> Just $ portray x `diffVs` Opaque "_" InBoth x y -> diff x y- InRight y -> Just $ "_" `diffVs` portray y+ InRight y -> Just $ Opaque "_" `diffVs` portray y instance ( TestEquality k, GEq k, Hashable1 k, Portray1 k, Diff1 k , Entails k (Portray :!: m), Entails k (Diff :!: m)@@ -122,8 +122,8 @@ diff (HashMap10 l) (HashMap10 r) = if anyDiff then- Just $ Apply "fromList" $ pure $ List $- (if allDiff then id else (++ ["..."])) $+ Just $ Apply (Name "fromList") $ pure $ List $+ (if allDiff then id else (++ [Opaque "..."])) $ catMaybes $ F.toList diffs else Nothing where
ten-unordered-containers.cabal view
@@ -4,10 +4,10 @@ -- -- see: https://github.com/sol/hpack ----- hash: 460b0d405128cac6332d195fe97b6929e0a80b1dfef27a869163931cb8b21e7c+-- hash: d03c56a37f35170e077e000599e38ae3b5326929a14acca36d873bd5afa407db name: ten-unordered-containers-version: 0.1.0.1+version: 0.1.0.2 synopsis: A package providing one unordered container. description: This provides unordered (hash-based) containers of kind @(k -> Type) -> Type@ based on@@ -40,7 +40,7 @@ build-depends: base >=4.12 && <4.16 , hashable >=1.0 && <1.4- , portray >=0.1 && <0.2+ , portray >=0.1.1 && <0.3 , portray-diff >=0.1 && <0.2 , some >=1.0 && <1.1 , ten >=0.1 && <0.2@@ -60,7 +60,7 @@ , base >=4.12 && <4.16 , hashable >=1.0 && <1.4 , lens- , portray >=0.1 && <0.2+ , portray >=0.1.1 && <0.3 , portray-diff >=0.1 && <0.2 , portray-diff-hunit , portray-pretty