packages feed

data-ascii 1.0.0.2 → 1.0.0.4

raw patch · 3 files changed

+4/−14 lines, 3 filesdep ~bytestringPVP ok

version bump matches the API change (PVP)

Dependency ranges changed: bytestring

API changes (from Hackage documentation)

Files

Data/Ascii/Word8.hs view
@@ -1,5 +1,3 @@-{-# LANGUAGE CPP #-}- module Data.Ascii.Word8 where  -- base@@ -59,9 +57,7 @@ fromDigit :: Num a => Word8 -> Maybe a fromDigit w | isDigit w = Just $ unsafeFromDigit w             | otherwise = Nothing-#if __GLASGOW_HASKELL__ >= 700 {-# INLINABLE fromDigit #-}-#endif  unsafeFromDigit :: Num a => Word8 -> a unsafeFromDigit w = fromIntegral (w - ascii '0')@@ -73,9 +69,7 @@ fromOctDigit :: Num a => Word8 -> Maybe a fromOctDigit w | isOctDigit w = Just $ unsafeFromOctDigit w                | otherwise    = Nothing-#if __GLASGOW_HASKELL__ >= 700 {-# INLINABLE fromOctDigit #-}-#endif  unsafeFromOctDigit :: Num a => Word8 -> a unsafeFromOctDigit = unsafeFromDigit@@ -96,9 +90,7 @@ fromLowHexDigit w | isDigit w = Just $ unsafeFromDigit w                   | isLowAF w = Just $ fromLowAF w                   | otherwise = Nothing-#if __GLASGOW_HASKELL__ >= 700 {-# INLINABLE fromLowHexDigit #-}-#endif  unsafeFromLowHexDigit :: Num a => Word8 -> a unsafeFromLowHexDigit w | w < ascii 'a' = unsafeFromDigit w@@ -120,9 +112,7 @@ fromUpHexDigit w | isDigit w = Just $ unsafeFromDigit w                  | isUpAF w  = Just $ fromUpAF w                  | otherwise = Nothing-#if __GLASGOW_HASKELL__ >= 700 {-# INLINABLE fromUpHexDigit #-}-#endif  unsafeFromUpHexDigit :: Num a => Word8 -> a unsafeFromUpHexDigit w | w < ascii 'A' = unsafeFromDigit w@@ -137,9 +127,7 @@                | isUpAF w  = Just $ fromUpAF w                | isLowAF w = Just $ fromLowAF w                | otherwise = Nothing-#if __GLASGOW_HASKELL__ >= 700 {-# INLINABLE fromHexDigit #-}-#endif  unsafeFromHexDigit :: Num a => Word8 -> a unsafeFromHexDigit w | w < ascii 'A' = unsafeFromDigit w
changelog.txt view
@@ -1,1 +1,3 @@ 1.0.0.2 - 2020-05-18 - Support GHC 8.10++1.0.0.4 - 2021-02-09 - Support bytestring-0.11
data-ascii.cabal view
@@ -1,7 +1,7 @@ cabal-version: 2.0  Name:                data-ascii-Version:             1.0.0.2+Version:             1.0.0.4 Synopsis:            Type-safe, bytestring-based ASCII values Description:         Type-safe, bytestring-based ASCII values. License:             BSD3@@ -27,7 +27,7 @@                      , Data.Ascii.ByteString                      , Data.Ascii.Word8   Build-depends:       base             >= 4             && < 5-                     , bytestring       >= 0.9           && < 0.11+                     , bytestring       >= 0.9           && < 0.12                      , text             >= 0.11          && < 1.3                      , blaze-builder    >= 0.4           && < 0.5                      , case-insensitive >= 0.2           && < 1.3