packages feed

deepseq-generics 0.2.0.0 → 0.2.0.1

raw patch · 3 files changed

+41/−30 lines, 3 filesdep −ghc-primdep ~basenew-uploaderPVP ok

version bump matches the API change (PVP)

Dependencies removed: ghc-prim

Dependency ranges changed: base

API changes (from Hackage documentation)

Files

changelog.md view
@@ -1,3 +1,8 @@+## 0.2.0.1  August 2025++ * Drop support for GHC 7+ * Tested with GHC 8.0 - 9.14 alpha1+ ## 0.2.0.0  January 2016   * Add support for GHC 8.0
deepseq-generics.cabal view
@@ -1,17 +1,34 @@+cabal-version:       1.18 name:                deepseq-generics-version:             0.2.0.0+version:             0.2.0.1+ synopsis:            GHC.Generics-based Control.DeepSeq.rnf implementation-homepage:            https://github.com/hvr/deepseq-generics-bug-reports:         https://github.com/hvr/deepseq-generics/issues+homepage:            https://github.com/haskell-hvr/deepseq-generics+bug-reports:         https://github.com/haskell-hvr/deepseq-generics/issues license:             BSD3 license-file:        LICENSE author:              Herbert Valerio Riedel-maintainer:          hvr@gnu.org+maintainer:          https://github.com/haskell-hvr copyright:           2012, Herbert Valerio Riedel category:            Control build-type:          Simple-cabal-version:       >=1.10-tested-with:         GHC==8.0.*, GHC==7.10.*, GHC==7.8.*, GHC==7.6.*, GHC==7.4.*++tested-with:+  GHC == 9.14.1+  GHC == 9.12.2+  GHC == 9.10.2+  GHC == 9.8.4+  GHC == 9.6.7+  GHC == 9.4.8+  GHC == 9.2.8+  GHC == 9.0.2+  GHC == 8.10.7+  GHC == 8.8.4+  GHC == 8.6.5+  GHC == 8.4.4+  GHC == 8.2.2+  GHC == 8.0.2+ description:     This package provides a "GHC.Generics"-based     'Control.DeepSeq.Generics.genericRnf' function which can be used@@ -33,16 +50,17 @@     for writing code that's also compatible with older @deepseq@     versions not yet providing "GHC.Generics"-support. -extra-source-files: changelog.md+extra-doc-files: changelog.md  source-repository head     type:     git-    location: https://github.com/hvr/deepseq-generics.git+    location: https://github.com/haskell-hvr/deepseq-generics.git  library     default-language:    Haskell2010     exposed-modules:     Control.DeepSeq.Generics-    build-depends:       base >= 4.5 && < 4.10, ghc-prim >= 0.2 && < 0.6, deepseq >= 1.2.0.1 && < 1.5+    build-depends:       base     >= 4.9     && < 5+                       , deepseq  >= 1.2.0.1 && < 1.6     other-extensions:    BangPatterns, FlexibleContexts, TypeOperators     ghc-options:         -Wall @@ -51,15 +69,14 @@     type:                exitcode-stdio-1.0     hs-source-dirs:      test     main-is:             Suite.hs-    other-extensions:    CPP, DeriveDataTypeable, DeriveGeneric, TupleSections+    other-extensions:    CPP, DeriveGeneric, TupleSections     ghc-options:         -Wall      build-depends:-        base,-        deepseq,-        deepseq-generics,-        ghc-prim,+        base+      , deepseq+      , deepseq-generics         -- end of packages with inherited version constraints-        test-framework,-        test-framework-hunit,-        HUnit+      , test-framework       >= 0.6.1 && < 0.9+      , test-framework-hunit >= 0.2.2 && < 0.9+      , HUnit                >= 1.2.5 && < 1.7
test/Suite.hs view
@@ -1,4 +1,4 @@-{-# LANGUAGE CPP, TupleSections, DeriveDataTypeable, DeriveGeneric #-}+{-# LANGUAGE CPP, TupleSections, DeriveGeneric #-}  module Main (main) where @@ -8,7 +8,6 @@ import Control.Monad import Data.Bits import Data.IORef-import Data.Typeable import Data.Word import GHC.Generics import System.IO.Unsafe (unsafePerformIO)@@ -21,16 +20,6 @@ -- IUT import Control.DeepSeq.Generics --- needed for GHC-7.4 compatibility-#if !MIN_VERSION_base(4,6,0)-atomicModifyIORef' :: IORef a -> (a -> (a,b)) -> IO b-atomicModifyIORef' ref f = do-    b <- atomicModifyIORef ref-            (\x -> let (a, b) = f x-                    in (a, a `seq` b))-    b `seq` return b-#endif- ---------------------------------------------------------------------------- -- simple hacky abstraction for testing forced evaluation via `rnf`-like functions @@ -72,7 +61,7 @@     {-# NOINLINE rnf #-}  -- |Exception to be thrown for testing 'seq'/'rnf'-data RnfEx = RnfEx deriving (Eq, Show, Typeable)+data RnfEx = RnfEx deriving (Eq, Show)  instance Exception RnfEx