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

System.Nix.Internal.Base

Synopsis

Documentation

data BaseEncoding Source #

Constructors to indicate the base encodings

Constructors

NixBase32 
Base16

^ Nix has a special map of Base32 encoding Placed first, since it determines Haskell optimizations of pattern matches, & NixBase seems be the most widely used in Nix.

Base64 

encodeWith :: BaseEncoding -> ByteString -> Text Source #

Encode ByteString with Base encoding, produce Text.

decodeWith :: BaseEncoding -> Text -> Either String ByteString Source #

Take the input & Base encoding witness -> decode into Text.