Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- digits32 :: Vector Char
- encode :: ByteString -> Text
- decode :: Text -> Either String ByteString
- unsafeDecode :: Text -> Either String ByteString
- integerToBS :: Integer -> ByteString
Documentation
encode :: ByteString -> Text Source #
Encode a ByteString
in Nix's base32 encoding
unsafeDecode :: Text -> Either String ByteString Source #
Decode Nix's base32 encoded text
Doesn't check if all elements match digits32
integerToBS :: Integer -> ByteString Source #
Encode an Integer to a bytestring
Similar to Data.Base32String (integerToBS) without reverse