packages feed

xor 0.0.1.3 → 0.0.1.4

raw patch · 3 files changed

+20/−34 lines, 3 filesdep −ghc-byteorderdep ~basedep ~bytestringPVP ok

version bump matches the API change (PVP)

Dependencies removed: ghc-byteorder

Dependency ranges changed: base, bytestring

API changes (from Hackage documentation)

Files

CHANGELOG.md view
@@ -1,4 +1,12 @@ +## 0.0.1.4++_Andreas Abel, 2025-12-26_++- Drop support for GHC 8.0 and 8.2.+- Drop thus obsolete dependency `ghc-byteorder`.+- Tested with GHC 8.4 - 9.14.+ ## 0.0.1.3  _Andreas Abel, 2024-06-25_
src/Endianness.hs view
@@ -23,33 +23,10 @@     ) where  import           Data.Word        (Word16, Word32, Word64, Word8)+import           Data.Word        (byteSwap16, byteSwap32, byteSwap64) import           Foreign.Ptr import           Foreign.Storable import           GHC.ByteOrder    (ByteOrder (..), targetByteOrder)--#if MIN_VERSION_base(4,7,0)-import           Data.Word        (byteSwap16, byteSwap32, byteSwap64)-#else-import           Data.Bits---- supply missing byteSwap operations--byteSwap16 :: Word16 -> Word16-byteSwap16 = (`rotateL` 8)--byteSwap32 :: Word32 -> Word32-byteSwap32 x-  = (x                  `shiftR` 24)  .|.-    ((x .&. 0x00ff0000) `shiftR`  8)  .|.-    ((x .&. 0x0000ff00) `shiftL`  8)  .|.-    (x                  `shiftL` 24)--byteSwap64 :: Word64 -> Word64-byteSwap64 x = xh .|. (xl `shiftL` 32)-  where-    xl = fromIntegral (byteSwap32 (fromIntegral x))-    xh = fromIntegral (byteSwap32 (fromIntegral (x `shiftR` 32)))-#endif  pokeWord16be :: Ptr Word16 -> Word16 -> IO () pokeWord16be = case targetByteOrder of
xor.cabal view
@@ -1,6 +1,6 @@ cabal-version:       2.2 name:                xor-version:             0.0.1.3+version:             0.0.1.4  category:            Data, Codec author:              Herbert Valerio Riedel@@ -30,9 +30,11 @@   The performance is comparable to portable ISO C99 implementations but this library is implemented as pure Haskell and is thereby compatible with compile targets such as <https://github.com/ghcjs/ghcjs GHCJS>.  tested-with:-  GHC == 9.10.1-  GHC == 9.8.2-  GHC == 9.6.5+  GHC == 9.14.1+  GHC == 9.12.2+  GHC == 9.10.3+  GHC == 9.8.4+  GHC == 9.6.7   GHC == 9.4.8   GHC == 9.2.8   GHC == 9.0.2@@ -40,8 +42,6 @@   GHC == 8.8.4   GHC == 8.6.5   GHC == 8.4.4-  GHC == 8.2.2-  GHC == 8.0.2  extra-doc-files:   CHANGELOG.md@@ -58,9 +58,10 @@                        MagicHash    build-depends:-    , base            >= 4.9      && < 5-    , bytestring      >= 0.10.4   && < 0.13-    , ghc-byteorder  ^>= 4.11.0.0+    , base            >= 4.11      && < 5+        -- GHC.ByteOrder ships with base-4.11 and up+    , bytestring      >= 0.10.8.2  && < 0.13+        -- bytestring-0.10.8.2 ships with GHC 8.4    ghc-options:     -Wall@@ -105,4 +106,4 @@     , tasty             >= 1.2.3 && < 1.6     , tasty-hunit      ^>= 0.10     , tasty-quickcheck  >= 0.10  && < 1-    , QuickCheck        >= 2.14  && < 2.16+    , QuickCheck        >= 2.14  && < 3