multibase 0.1.1 → 0.1.2
raw patch · 2 files changed
+3/−11 lines, 2 filesdep ~base16-bytestringPVP: major bump suggested
API removals or changes: PVP suggests a major version bump
Dependency ranges changed: base16-bytestring
API changes (from Hackage documentation)
- Data.ByteString.BaseN: tagWith :: () => proxy s -> a -> Tagged s a
+ Data.ByteString.BaseN: tagWith :: forall k proxy (s :: k) a. proxy s -> a -> Tagged s a
Files
- multibase.cabal +2/−2
- src/Data/ByteString/BaseN.hs +1/−9
multibase.cabal view
@@ -2,7 +2,7 @@ build-type: Custom name: multibase-version: 0.1.1+version: 0.1.2 synopsis: Self-identifying base encodings, implementation of <https://github.com/multiformats/multihash> homepage: https://github.com/oscoin/ipfs bug-reports: https://github.com/oscoin/ipfs/issues@@ -49,7 +49,7 @@ build-depends: , aeson , base >= 4.9 && < 5- , base16-bytestring+ , base16-bytestring >= 1.0.0.0 && < 2.0.0.0 , base32-z-bytestring , base58-bytestring , base64-bytestring
src/Data/ByteString/BaseN.hs view
@@ -561,15 +561,7 @@ decodeBase16 = either (const Nothing) pure . decodeBase16Either decodeBase16Either :: ByteString -> Either String ByteString-decodeBase16Either bs =- case Base16.decode bs of- (x, "") -> Right x- (x, invalid) -> Left . mconcat $- [ "Decoded: "- , "`", unpack x, "`"- , " until invalid sequence: "- , "`", unpack invalid, "`"- ]+decodeBase16Either = Base16.decode {-# INLINE decodeBase16Either #-} decodeBase64 :: ByteString -> Maybe ByteString