hs-abci-types-0.1.0.0
Safe HaskellNone
LanguageHaskell2010

Data.ByteArray.Base64String

Synopsis

Documentation

newtype Base64String Source #

Represents a Hex string. Guarantees that all characters it contains are valid hex characters.

Constructors

Base64String 

Instances

Instances details
Eq Base64String Source # 
Instance details

Defined in Data.ByteArray.Base64String

Ord Base64String Source # 
Instance details

Defined in Data.ByteArray.Base64String

Show Base64String Source # 
Instance details

Defined in Data.ByteArray.Base64String

IsString Base64String Source # 
Instance details

Defined in Data.ByteArray.Base64String

Semigroup Base64String Source # 
Instance details

Defined in Data.ByteArray.Base64String

Monoid Base64String Source # 
Instance details

Defined in Data.ByteArray.Base64String

FromJSON Base64String Source # 
Instance details

Defined in Data.ByteArray.Base64String

Methods

parseJSON :: Value -> Parser Base64String

parseJSONList :: Value -> Parser [Base64String]

ToJSON Base64String Source # 
Instance details

Defined in Data.ByteArray.Base64String

Methods

toJSON :: Base64String -> Value

toEncoding :: Base64String -> Encoding

toJSONList :: [Base64String] -> Value

toEncodingList :: [Base64String] -> Encoding

ByteArray Base64String Source # 
Instance details

Defined in Data.ByteArray.Base64String

Methods

allocRet :: Int -> (Ptr p -> IO a) -> IO (a, Base64String)

ByteArrayAccess Base64String Source # 
Instance details

Defined in Data.ByteArray.Base64String

base64String :: ByteArray ba => ba -> Either String Base64String Source #

Smart constructor that works with any mixed casing of characters: `Base64String AA == Base64String "0xAa" == Base64String "0xaA" == Base64String "aa"`

fromBytes :: ByteArrayAccess ba => ba -> Base64String Source #

Reads a raw bytes and converts to hex representation.

toBytes :: ByteArray ba => Base64String -> ba Source #

Access to the raw bytes of Base64String.

toText :: Base64String -> Text Source #

Access to a Text representation of the Base64String

format :: Base64String -> Text Source #

Access to a Text representation of the Base64String