packages feed

serokell-util 0.1.3.3 → 0.1.3.4

raw patch · 2 files changed

+8/−7 lines, 2 filesPVP: minor bump suggested

API additions: PVP suggests at least a minor version bump

API changes (from Hackage documentation)

+ Serokell.Data.Memory.Units: instance Control.DeepSeq.NFData Serokell.Data.Memory.Units.Byte
+ Serokell.Data.Memory.Units: instance Control.DeepSeq.NFData Serokell.Data.Memory.Units.Gigabyte
+ Serokell.Data.Memory.Units: instance Control.DeepSeq.NFData Serokell.Data.Memory.Units.Kilobyte
+ Serokell.Data.Memory.Units: instance Control.DeepSeq.NFData Serokell.Data.Memory.Units.Megabyte
+ Serokell.Data.Memory.Units: instance Control.DeepSeq.NFData Serokell.Data.Memory.Units.Terabyte

Files

serokell-util.cabal view
@@ -1,5 +1,5 @@ name:                serokell-util-version:             0.1.3.3+version:             0.1.3.4 synopsis:            General-purpose functions by Serokell homepage:            https://github.com/serokell/serokell-util license:             MIT
src/Serokell/Data/Memory/Units.hs view
@@ -28,6 +28,7 @@        , convertUnit        ) where +import           Control.DeepSeq        (NFData) import           Data.Binary            (Binary) import           Data.Proxy             (Proxy (Proxy)) import           Data.SafeCopy          (SafeCopy)@@ -96,8 +97,8 @@     Byte Integer     deriving (Show,Eq,Num,Typeable,Integral,Real,Enum,Ord,Generic,Serialize,Binary, Arbitrary) +instance NFData Byte instance SafeCopy Byte- instance MemoryUnit Byte where     bytesMultiplier Proxy = pow10 0 @@ -105,19 +106,19 @@     Kilobyte Integer     deriving (Show,Eq,Num,Typeable,Integral,Real,Enum,Ord,Generic,Serialize,Arbitrary) +instance NFData Kilobyte instance SafeCopy Kilobyte- instance MemoryUnit Kilobyte where     bytesMultiplier Proxy = pow10 3 --- P. S. Feel free to add more.+-- P.S. Feel free to add more.  newtype Megabyte =     Megabyte Integer     deriving (Show,Eq,Num,Typeable,Integral,Real,Enum,Ord,Generic,Serialize,Arbitrary) +instance NFData Megabyte instance SafeCopy Megabyte- instance MemoryUnit Megabyte where     bytesMultiplier Proxy = pow10 6 @@ -125,8 +126,8 @@     Gigabyte Integer     deriving (Show,Eq,Num,Typeable,Integral,Real,Enum,Ord,Generic,Serialize,Arbitrary) +instance NFData Gigabyte instance SafeCopy Gigabyte- instance MemoryUnit Gigabyte where     bytesMultiplier Proxy = pow10 9 @@ -134,7 +135,7 @@     Terabyte Integer     deriving (Show,Eq,Num,Typeable,Integral,Real,Enum,Ord,Generic,Serialize,Arbitrary) +instance NFData Terabyte instance SafeCopy Terabyte- instance MemoryUnit Terabyte where     bytesMultiplier Proxy = pow10 12