deepseq 1.4.8.0 → 1.4.8.1
raw patch · 3 files changed
+34/−9 lines, 3 filesdep ~basePVP: major bump suggested
API removals or changes: PVP suggests a major version bump
Dependency ranges changed: base
API changes (from Hackage documentation)
- Control.DeepSeq: instance Control.DeepSeq.NFData GHC.Integer.Type.Integer
- Control.DeepSeq: instance Control.DeepSeq.NFData GHC.Natural.Natural
- Control.DeepSeq: instance Control.DeepSeq.NFData a => Control.DeepSeq.NFData (Data.Semigroup.Option a)
- Control.DeepSeq: instance Control.DeepSeq.NFData1 Data.Semigroup.Option
+ Control.DeepSeq: instance Control.DeepSeq.NFData GHC.Num.Integer.Integer
+ Control.DeepSeq: instance Control.DeepSeq.NFData GHC.Num.Natural.Natural
+ Control.DeepSeq: instance Control.DeepSeq.NFData GHC.Types.Module
+ Control.DeepSeq: instance Control.DeepSeq.NFData a => Control.DeepSeq.NFData (Solo a)
+ Control.DeepSeq: instance Control.DeepSeq.NFData1 Solo
+ Control.DeepSeq: instance forall k (a :: k). Control.DeepSeq.NFData (Data.Typeable.Internal.TypeRep a)
Files
- Control/DeepSeq.hs +19/−2
- changelog.md +7/−0
- deepseq.cabal +8/−7
Control/DeepSeq.hs view
@@ -101,7 +101,7 @@ import Data.Fixed import Data.Version import Data.Monoid as Mon-import Data.Typeable ( TypeRep, TyCon )+import Data.Typeable ( TypeRep, rnfTypeRep, TyCon, rnfTyCon ) import Data.Unique ( Unique ) import Foreign.Ptr import Foreign.C.Types@@ -112,12 +112,12 @@ #if MIN_VERSION_base(4,10,0) import Data.Type.Equality ( (:~:), (:~~:) )+import qualified Type.Reflection as Reflection #else import Data.Type.Equality ( (:~:) ) #endif import Data.Functor.Identity ( Identity(..) )-import Data.Typeable ( rnfTypeRep, rnfTyCon ) import Data.Void ( Void, absurd ) import Numeric.Natural ( Natural ) @@ -644,7 +644,16 @@ instance NFData TyCon where rnf tycon = rnfTyCon tycon +#if MIN_VERSION_base(4,10,0)+-- |@since 1.4.8.0+instance NFData (Reflection.TypeRep a) where+ rnf tr = Reflection.rnfTypeRep tr +-- |@since 1.4.8.0+instance NFData Reflection.Module where+ rnf modul = Reflection.rnfModule modul+#endif+ -- | __NOTE__: Only strict in the reference and not the referenced value. -- -- @since 1.4.2.0@@ -879,10 +888,18 @@ #if MIN_VERSION_ghc_prim(0,7,0) -- |@since 1.4.6.0 instance NFData a => NFData (Solo a) where+#if MIN_VERSION_ghc_prim(0,10,0)+ rnf (MkSolo a) = rnf a+#else rnf (Solo a) = rnf a+#endif -- |@since 1.4.6.0 instance NFData1 Solo where+#if MIN_VERSION_ghc_prim(0,10,0)+ liftRnf r (MkSolo a) = r a+#else liftRnf r (Solo a) = r a+#endif #endif #endif
changelog.md view
@@ -1,5 +1,12 @@ # Changelog for [`deepseq` package](http://hackage.haskell.org/package/deepseq) +## Upcoming++ * Adapt the rename of the Solo constructor to MkSolo+ ([#87](https://github.com/haskell/deepseq/pull/87))+ * Add instances for the indexed `TypeRep`, along with `Module`.+ ([#83](https://github.com/haskell/deepseq/pull/83))+ ## 1.4.8.0 * Add `NFData` instance for `MutableByteArray`
deepseq.cabal view
@@ -1,6 +1,6 @@ cabal-version: 1.12 name: deepseq-version: 1.4.8.0+version: 1.4.8.1 -- NOTE: Don't forget to update ./changelog.md license: BSD3@@ -25,12 +25,13 @@ details. build-type: Simple-tested-with: - GHC==9.2.1,- GHC==9.0.1,+tested-with:+ GHC==9.4.3,+ GHC==9.2.5,+ GHC==9.0.2, GHC==8.10.7,- GHC==8.6.5, GHC==8.6.4, GHC==8.6.3, GHC==8.6.2, GHC==8.6.1,- GHC==8.4.4, GHC==8.4.3, GHC==8.4.2, GHC==8.4.1,+ GHC==8.6.5,+ GHC==8.4.4, GHC==8.2.2, GHC==8.0.2 @@ -59,7 +60,7 @@ if impl(ghc >=9.0) build-depends: ghc-prim - build-depends: base >= 4.9 && < 4.18,+ build-depends: base >= 4.9 && < 4.19, array >= 0.4 && < 0.6 ghc-options: -Wall