We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5e98e80 + a14d683 commit 8e12c77Copy full SHA for 8e12c77
lib/unison-util-bytes/src/Unison/Util/Bytes.hs
@@ -370,13 +370,7 @@ arrayToChunk bs = case BA.convert bs :: Block Word8 of
370
chunkFromArray = arrayToChunk
371
372
fromBase16 :: Bytes -> Either Text.Text Bytes
373
-fromBase16 bs = case traverse convert (chunks bs) of
374
- Left e -> Left (Text.pack e)
375
- Right bs -> Right (fromChunks bs)
376
- where
377
- convert b =
378
- BE.convertFromBase BE.Base16 (chunkToArray @BA.Bytes b)
379
- <&> arrayToChunk @BA.Bytes
+fromBase16 = fromBase BE.Base16
380
381
toBase32, toBase64, toBase64UrlUnpadded :: Bytes -> Bytes
382
toBase32 = toBase BE.Base32
0 commit comments