deepseq 1.5.1.0 → 1.5.2.0
raw patch · 3 files changed
+13/−4 lines, 3 filesPVP: major bump suggested
API removals or changes: PVP suggests a major version bump
API changes (from Hackage documentation)
- Control.DeepSeq: instance Control.DeepSeq.NFData a => Control.DeepSeq.NFData (Solo a)
- Control.DeepSeq: instance Control.DeepSeq.NFData1 Solo
+ Control.DeepSeq: ($dmliftRnf) :: (NFData1 f, Generic1 f, GNFData One (Rep1 f)) => (a -> ()) -> f a -> ()
+ Control.DeepSeq: ($dmrnf) :: (NFData a, Generic a, GNFData Zero (Rep a)) => a -> ()
+ Control.DeepSeq: instance Control.DeepSeq.NFData a => Control.DeepSeq.NFData (GHC.Tuple.Prim.Solo a)
+ Control.DeepSeq: instance Control.DeepSeq.NFData1 GHC.Tuple.Prim.Solo
- Control.DeepSeq: class (forall a. NFData a => NFData (f a)) => NFData1 f
+ Control.DeepSeq: class forall a. NFData a => NFData f a => NFData1 (f :: Type -> Type)
- Control.DeepSeq: class (forall a. NFData a => NFData1 (p a)) => NFData2 p
+ Control.DeepSeq: class forall a. NFData a => NFData1 p a => NFData2 (p :: Type -> Type -> Type)
- Control.DeepSeq: liftRnf :: (NFData1 f, Generic1 f, GNFData One (Rep1 f)) => (a -> ()) -> f a -> ()
+ Control.DeepSeq: liftRnf :: NFData1 f => (a -> ()) -> f a -> ()
- Control.DeepSeq: rnf :: (NFData a, Generic a, GNFData Zero (Rep a)) => a -> ()
+ Control.DeepSeq: rnf :: NFData a => a -> ()
Files
- Control/DeepSeq.hs +5/−0
- changelog.md +3/−0
- deepseq.cabal +5/−4
Control/DeepSeq.hs view
@@ -531,7 +531,12 @@ -- This assumes that WHNF is equivalent to NF for functions. -- -- @since 1.3.0.0+-- @deprecated 1.5.2.0+#if __GLASGOW_HASKELL__ >= 910+instance {-# DEPRECATED "NFData is not well-defined on function types. https://github.com/haskell/deepseq/issues/16" #-} NFData (a -> b) where rnf = rwhnf+#else instance NFData (a -> b) where rnf = rwhnf+#endif -- Rational and complex numbers.
changelog.md view
@@ -2,7 +2,10 @@ ## Upcoming +## 1.5.2.0 + * Deprecate function instance of NFData+ ([#16](https://github.com/haskell/deepseq/issues/16), [#109](https://github.com/haskell/deepseq/issues/109)) ## 1.5.1.0
deepseq.cabal view
@@ -1,6 +1,6 @@ cabal-version: 1.12 name: deepseq-version: 1.5.1.0+version: 1.5.2.0 -- NOTE: Don't forget to update ./changelog.md license: BSD3@@ -26,8 +26,9 @@ build-type: Simple tested-with:- GHC==9.10.1,- GHC==9.8.2,+ GHC==9.12.2,+ GHC==9.10.2,+ GHC==9.8.4, GHC==9.6.6, GHC==9.4.8, GHC==9.2.8,@@ -61,7 +62,7 @@ if impl(ghc >=9.0) build-depends: ghc-prim - build-depends: base >= 4.12 && < 4.21+ build-depends: base >= 4.12 && < 4.23 ghc-options: -Wall exposed-modules: Control.DeepSeq