nf 1.0.0.3 → 1.0.1.0
raw patch · 2 files changed
+4/−1 lines, 2 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
+ Data.NF.Internal: instance [safe] Eq a => Eq (NF a)
+ Data.NF.Internal: instance [safe] Ord a => Ord (NF a)
+ Data.NF.Internal: instance [safe] Typeable NF
Files
- Data/NF/Internal.hs +3/−0
- nf.cabal +1/−1
Data/NF/Internal.hs view
@@ -1,4 +1,5 @@ {-# LANGUAGE CPP #-}+{-# LANGUAGE DeriveDataTypeable #-} #if __GLASGOW_HASKELL__ >= 704 {-# LANGUAGE Safe #-} #endif@@ -19,6 +20,7 @@ module Data.NF.Internal(NF(..)) where import Control.DeepSeq+import Data.Typeable -- | 'NF' is an abstract data type representing data which has been -- evaluated to normal form. Specifically, if a value of type @'NF' a@@@ -29,6 +31,7 @@ -- | For @'UnsafeNF' x@ to preserve the 'NF' invariant, you must -- show that @'UnsafeNF' x == 'deepseq' x ('UnsafeNF' x)@. = UnsafeNF a+ deriving (Eq, Ord, Typeable) instance NFData (NF a) where rnf x = x `seq` ()
nf.cabal view
@@ -1,5 +1,5 @@ name: nf-version: 1.0.0.3+version: 1.0.1.0 synopsis: NF data type to statically enforce normal form description: This package provides a data type NF representing data which has been evaluated to normal form. This