env-parser-0.0.1.0: Pull configuration information from the ENV

Portabilitynon-portable
Stabilityexperimental
Maintainerme@jspha.com
Safe HaskellNone

System.Environment.Parser.Encoded

Description

Often it's useful to pass binary data through the environment as an encoded string. This module provides handy types for specifying these kinds of data.

 data SecretKeys = Sk { key1 :: Base64, key2 :: Base64 }

Synopsis

Documentation

newtype Base64 Source

Isomorphic to a ByteString, a type which prefers to be base-64 encoded.

Constructors

Base64 

Fields

unBase64 :: ByteString
 

newtype Base64Url Source

Isomorphic to a ByteString, a type which prefers to be base-64-url encoded (see http://www.apps.ietf.org/rfc/rfc4648.html).

Constructors

Base64Url 

newtype Base16 Source

Isomorphic to a ByteString, a type which prefers to be hexadecimal encoded.

Constructors

Base16 

Fields

unBase16 :: ByteString