monoidmap 0.1.5.1 → 0.2.0.0
raw patch · 3 files changed
+14/−32 lines, 3 filesdep −nothunks
Dependencies removed: nothunks
Files
- CHANGELOG.md +11/−0
- components/monoidmap/Data/MonoidMap.hs +2/−18
- monoidmap.cabal +1/−14
CHANGELOG.md view
@@ -1,3 +1,14 @@+# 0.2.0.0++- Moved the `NoThunks` instance for `MonoidMap` to a brand new package:+ `monoidmap-nothunks`.++ This is a breaking change. To continue using the instance, add a dependency+ on `monoidmap-nothunks`, and import `Data.MonoidMap.NoThunks ()`.++- Removed the manual `nothunks` flag, which existed only to make the `NoThunks`+ instance optional.+ # 0.1.5.1 - Added a section to the documentation of `Data.MonoidMap` listing all the
components/monoidmap/Data/MonoidMap.hs view
@@ -1,4 +1,3 @@-{-# LANGUAGE CPP #-} {-# LANGUAGE RoleAnnotations #-} {-# OPTIONS_GHC -fno-warn-redundant-constraints #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-}@@ -241,10 +240,6 @@ ( Set ) import GHC.Exts ( IsList (Item) )-#ifdef NOTHUNKS-import NoThunks.Class- ( NoThunks (showTypeOf, wNoThunks) )-#endif import Text.Read ( Read (..) ) @@ -544,6 +539,8 @@ -- +------------------------+--------------+---------------+ -- | @monoidmap-hashable@ | @hashable@ | @Hashable@ | -- +------------------------+--------------+---------------++-- | @monoidmap-nothunks@ | @nothunks@ | @NoThunks@ |+-- +------------------------+--------------+---------------+ -- | @monoidmap-quickcheck@ | @QuickCheck@ | @Arbitrary@ | -- | | +---------------+ -- | | | @CoArbitrary@ |@@ -691,19 +688,6 @@ instance NFData2 MonoidMap where liftRnf2 = \rnfK rnfV -> foldlWithKey' (\() k v -> rnfK k `seq` rnfV v) () {-# INLINE liftRnf2 #-}--#ifdef NOTHUNKS------------------------------------------------------------------------------------ Instances: NoThunks------------------------------------------------------------------------------------- | @since 0.0.0.0-instance (NoThunks k, NoThunks v) => NoThunks (MonoidMap k v) where- showTypeOf _ = "MonoidMap"- {-# INLINE showTypeOf #-}- wNoThunks ctx = wNoThunks ctx . toMap- {-# INLINE wNoThunks #-}-#endif -------------------------------------------------------------------------------- -- Instances: Ord
monoidmap.cabal view
@@ -1,6 +1,6 @@ cabal-version: 3.0 name: monoidmap-version: 0.1.5.1+version: 0.2.0.0 homepage: https://github.com/jonathanknowles/monoidmap bug-reports: https://github.com/jonathanknowles/monoidmap/issues license: Apache-2.0@@ -17,14 +17,6 @@ CHANGELOG.md README.md -flag nothunks- description:- Provide a `NoThunks` instance for `MonoidMap`.- This instance will move to the `monoidmap-nothunks` package- in a future version of the `monoidmap` package.- default: True- manual: True- common dependency-base build-depends:base >= 4.14.3.0 && < 4.23 common dependency-containers@@ -41,10 +33,6 @@ build-depends:monoid-subclasses >= 1.2.3 && < 1.3 common dependency-monoidmap-internal build-depends:monoidmap-internal >= 0.5.2.0 && < 0.6-common dependency-nothunks- if flag(nothunks)- build-depends:nothunks >= 0.1.3 && < 0.4- cpp-options:-DNOTHUNKS common dependency-pretty-show build-depends:pretty-show >= 1.10 && < 1.11 common dependency-QuickCheck@@ -93,7 +81,6 @@ , dependency-groups , dependency-monoid-subclasses , dependency-monoidmap-internal- , dependency-nothunks , extensions hs-source-dirs: components/monoidmap