base16 0.1.2 → 0.1.2.1
raw patch · 4 files changed
+10/−6 lines, 4 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- CHANGELOG.md +4/−0
- base16.cabal +1/−1
- src/Data/ByteString/Base16.hs +3/−3
- src/Data/Text/Encoding/Base16.hs +2/−2
CHANGELOG.md view
@@ -1,6 +1,10 @@ # Revision history for base16 +## 0.1.2.1 -- 2020-02-17++* Documentation now references correct RFC section+ ## 0.1.2 -- 2020-02-17 * Unmask loops - now correct.
base16.cabal view
@@ -1,6 +1,6 @@ cabal-version: 2.0 name: base16-version: 0.1.2+version: 0.1.2.1 synopsis: RFC 4648-compliant Base16 encodings/decodings description: RFC 4648-compliant Base16 encodings and decodings.
src/Data/ByteString/Base16.hs view
@@ -33,7 +33,7 @@ -- | Encode a 'ByteString' value as Base16 'Text' with padding. ----- See: <https://tools.ietf.org/html/rfc4648#section-4 RFC-4648 section 4>+-- See: <https://tools.ietf.org/html/rfc4648#section-8 RFC-4648 section 8> -- encodeBase16 :: ByteString -> Text encodeBase16 = T.decodeUtf8 . encodeBase16'@@ -41,7 +41,7 @@ -- | Encode a 'ByteString' value as a Base16 'ByteString' value with padding. ----- See: <https://tools.ietf.org/html/rfc4648#section-4 RFC-4648 section 4>+-- See: <https://tools.ietf.org/html/rfc4648#section-8 RFC-4648 section 8> -- encodeBase16' :: ByteString -> ByteString encodeBase16' = encodeBase16_@@ -49,7 +49,7 @@ -- | Decode a padded Base16-encoded 'ByteString' value. ----- See: <https://tools.ietf.org/html/rfc4648#section-4 RFC-4648 section 4>+-- See: <https://tools.ietf.org/html/rfc4648#section-8 RFC-4648 section 8> -- decodeBase16 :: ByteString -> Either Text ByteString decodeBase16 = decodeBase16_
src/Data/Text/Encoding/Base16.hs view
@@ -26,7 +26,7 @@ -- | Encode a 'Text' value in Base16 with padding. ----- See: <https://tools.ietf.org/html/rfc4648#section-4 RFC-4648 section 4>+-- See: <https://tools.ietf.org/html/rfc4648#section-8 RFC-4648 section 8> -- encodeBase16 :: Text -> Text encodeBase16 = B16.encodeBase16 . T.encodeUtf8@@ -34,7 +34,7 @@ -- | Decode a padded Base16-encoded 'Text' value ----- See: <https://tools.ietf.org/html/rfc4648#section-4 RFC-4648 section 4>+-- See: <https://tools.ietf.org/html/rfc4648#section-8 RFC-4648 section 8> -- decodeBase16 :: Text -> Either Text Text decodeBase16 = fmap T.decodeUtf8 . B16.decodeBase16 . T.encodeUtf8