monoidmap 0.1.1.1 → 0.1.2.0
raw patch · 3 files changed
+17/−5 lines, 3 filesdep ~monoidmap-internal
Dependency ranges changed: monoidmap-internal
Files
- CHANGELOG.md +5/−0
- components/monoidmap/Data/MonoidMap.hs +10/−3
- monoidmap.cabal +2/−2
CHANGELOG.md view
@@ -1,3 +1,8 @@+# 0.1.2.0++- Changed the `NoThunks` instance for `MonoidMap` to report `MonoidMap`+ rather than `Map` in the context of any thunk that it finds.+ # 0.1.1.1 - Adapted to the revised module structure of `monoidmap-internal-0.4.0.0`.
components/monoidmap/Data/MonoidMap.hs view
@@ -232,7 +232,7 @@ import GHC.Exts ( IsList (Item) ) import NoThunks.Class- ( NoThunks )+ ( NoThunks (showTypeOf, wNoThunks) ) import Text.Read ( Read (..) ) @@ -528,8 +528,6 @@ -- ^ @since 0.0.0.0 , NFData -- ^ @since 0.0.0.0- , NoThunks- -- ^ @since 0.0.0.0 ) via NonNullMap k v deriving@@ -630,6 +628,15 @@ fromListConstr :: Constr fromListConstr = mkConstr dataType "fromList" [] Prefix++--------------------------------------------------------------------------------+-- Instances: NoThunks+--------------------------------------------------------------------------------++-- | @since 0.0.0.0+instance (NoThunks k, NoThunks v) => NoThunks (MonoidMap k v) where+ showTypeOf _ = "MonoidMap"+ wNoThunks ctx = wNoThunks ctx . toMap -------------------------------------------------------------------------------- -- Instances: Semigroup and subclasses
monoidmap.cabal view
@@ -1,6 +1,6 @@ cabal-version: 3.0 name: monoidmap-version: 0.1.1.1+version: 0.1.2.0 homepage: https://github.com/jonathanknowles/monoidmap bug-reports: https://github.com/jonathanknowles/monoidmap/issues license: Apache-2.0@@ -32,7 +32,7 @@ common dependency-monoid-subclasses build-depends:monoid-subclasses >= 1.2.3 && < 1.3 common dependency-monoidmap-internal- build-depends:monoidmap-internal >= 0.4.0.0 && < 0.5+ build-depends:monoidmap-internal >= 0.5.0.0 && < 0.6 common dependency-nothunks build-depends:nothunks >= 0.1.3 && < 0.4 common dependency-pretty-show