wide-word 0.1.8.0 → 0.1.8.1
raw patch · 5 files changed
+14/−5 lines, 5 filesdep ~basedep ~hedgehog
Dependency ranges changed: base, hedgehog
Files
- ChangeLog.md +4/−0
- src/Data/WideWord/Int128.hs +3/−2
- src/Data/WideWord/Word128.hs +3/−1
- src/Data/WideWord/Word256.hs +3/−1
- wide-word.cabal +1/−1
ChangeLog.md view
@@ -1,5 +1,9 @@ # Revision history for wide-word +## 0.1.8.1 -- 2025-09-13++* Reintroduce Data instances that were incorrectly removed in 0.1.8.0.+ ## 0.1.8.0 -- 2025-09-08 * Fix bug in Word256 implementions (minus).
src/Data/WideWord/Int128.hs view
@@ -1,8 +1,8 @@ {-# LANGUAGE BangPatterns #-} {-# LANGUAGE CPP #-}+{-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE MagicHash #-}-{-# LANGUAGE MultiParamTypeClasses #-} {-# LANGUAGE StrictData #-} {-# LANGUAGE UnboxedTuples #-} {-# OPTIONS_GHC -funbox-strict-fields #-}@@ -32,6 +32,7 @@ import Control.DeepSeq (NFData (..)) import Data.Bits (Bits (..), FiniteBits (..), shiftL)+import Data.Data (Data, Typeable) import Data.Ix (Ix) #if ! MIN_VERSION_base(4,11,0) import Data.Semigroup ((<>))@@ -68,7 +69,7 @@ { int128Hi64 :: !Word64 , int128Lo64 :: !Word64 }- deriving (Eq, Generic, Ix)+ deriving (Eq, Data, Generic, Ix) instance Hashable Int128 where hashWithSalt s (Int128 a1 a2) = s `hashWithSalt` a1 `hashWithSalt` a2
src/Data/WideWord/Word128.hs view
@@ -1,5 +1,6 @@ {-# LANGUAGE BangPatterns #-} {-# LANGUAGE CPP #-}+{-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE MagicHash #-} {-# LANGUAGE StrictData #-}@@ -33,6 +34,7 @@ import Control.DeepSeq (NFData (..)) import Data.Bits (Bits (..), FiniteBits (..), shiftL)+import Data.Data (Data) import Data.Ix (Ix) #if ! MIN_VERSION_base(4,11,0) import Data.Semigroup ((<>))@@ -60,7 +62,7 @@ { word128Hi64 :: !Word64 , word128Lo64 :: !Word64 }- deriving (Eq, Generic, Ix)+ deriving (Eq, Data, Generic, Ix) instance Hashable Word128 where hashWithSalt s (Word128 a1 a2) = s `hashWithSalt` a1 `hashWithSalt` a2
src/Data/WideWord/Word256.hs view
@@ -1,5 +1,6 @@ {-# LANGUAGE BangPatterns #-} {-# LANGUAGE CPP #-}+{-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE MagicHash #-} {-# LANGUAGE StrictData #-}@@ -30,6 +31,7 @@ import Control.DeepSeq (NFData (..)) import Data.Bits (Bits (..), FiniteBits (..), shiftL)+import Data.Data (Data) import Data.Ix (Ix) #if ! MIN_VERSION_base(4,11,0) import Data.Semigroup ((<>))@@ -61,7 +63,7 @@ , word256m0 :: !Word64 , word256lo :: !Word64 }- deriving (Eq, Generic, Ix)+ deriving (Eq, Data, Generic, Ix) instance Hashable Word256 where hashWithSalt s (Word256 a1 a2 a3 a4) =
wide-word.cabal view
@@ -2,7 +2,7 @@ -- documentation, see http://haskell.org/cabal/users-guide/ name: wide-word-version: 0.1.8.0+version: 0.1.8.1 synopsis: Data types for large but fixed width signed and unsigned integers description: A library to provide data types for large (ie > 64 bits) but fixed width signed