hnix-store-core-0.4.2.0: Core effects for interacting with the Nix store.
Safe HaskellNone
LanguageHaskell2010

System.Nix.Internal.Base32

Synopsis

Documentation

encode :: ByteString -> Text Source #

Encode a ByteString in Nix's base32 encoding

decode :: Text -> Either String ByteString Source #

Decode Nix's base32 encoded text

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