language-asn-0.1.0.0: ASN.1 encoding and decoding

Safe HaskellNone
LanguageHaskell2010

Language.Asn.Encoding

Contents

Synopsis

Run Encoding

Build Encoding

Constructed

Fields

required :: FieldName -> (a -> b) -> AsnEncoding b -> Field a Source #

optional :: FieldName -> (a -> Maybe b) -> AsnEncoding b -> Field a Source #

defaulted :: (Eq b, Show b) => FieldName -> (a -> b) -> AsnEncoding b -> b -> Field a Source #

Primitive

null' :: AsnEncoding a Source #

Anything can be encoded as NULL by simply discarding it. Typically, encoding a type with more than one inhabitant as NULL is a mistake, so the more restrictive null is to be preferred.