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

Safe HaskellNone
LanguageHaskell2010

Language.Asn.Types

Synopsis

Documentation

data AsnEncoding a Source #

Instances
Contravariant AsnEncoding Source # 
Instance details

Defined in Language.Asn.Types.Internal

Methods

contramap :: (a -> b) -> AsnEncoding b -> AsnEncoding a #

(>$) :: b -> AsnEncoding b -> AsnEncoding a #

data AsnDecoding a Source #

Instances
Functor AsnDecoding Source # 
Instance details

Defined in Language.Asn.Types.Internal

Methods

fmap :: (a -> b) -> AsnDecoding a -> AsnDecoding b #

(<$) :: a -> AsnDecoding b -> AsnDecoding a #

newtype ObjectIdentifier Source #

Note: we deviate slightly from the actual definition of an object identifier. Technically, each number of an OID should be allowed to be an integer of unlimited size. However, we are intentionally unfaithful to this specification because in practice, there are no OIDs that use integers above a 32-bit word, so we just use the machine's native word size.

Instances
Eq ObjectIdentifier Source # 
Instance details

Defined in Language.Asn.Types.Internal

Ord ObjectIdentifier Source # 
Instance details

Defined in Language.Asn.Types.Internal

Show ObjectIdentifier Source # 
Instance details

Defined in Language.Asn.Types.Internal

Generic ObjectIdentifier Source # 
Instance details

Defined in Language.Asn.Types.Internal

Associated Types

type Rep ObjectIdentifier :: Type -> Type #

Hashable ObjectIdentifier Source # 
Instance details

Defined in Language.Asn.Types.Internal

type Rep ObjectIdentifier Source # 
Instance details

Defined in Language.Asn.Types.Internal

type Rep ObjectIdentifier = D1 (MetaData "ObjectIdentifier" "Language.Asn.Types.Internal" "language-asn-0.1.0.0-CEYoCnbWRHKC4EXbCHGksq" True) (C1 (MetaCons "ObjectIdentifier" PrefixI True) (S1 (MetaSel (Just "getObjectIdentifier") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (PrimArray Word))))

newtype ObjectIdentifierSuffix Source #

Instances
Eq ObjectIdentifierSuffix Source # 
Instance details

Defined in Language.Asn.Types.Internal

Ord ObjectIdentifierSuffix Source # 
Instance details

Defined in Language.Asn.Types.Internal

Show ObjectIdentifierSuffix Source # 
Instance details

Defined in Language.Asn.Types.Internal

Generic ObjectIdentifierSuffix Source # 
Instance details

Defined in Language.Asn.Types.Internal

Associated Types

type Rep ObjectIdentifierSuffix :: Type -> Type #

Hashable ObjectIdentifierSuffix Source # 
Instance details

Defined in Language.Asn.Types.Internal

type Rep ObjectIdentifierSuffix Source # 
Instance details

Defined in Language.Asn.Types.Internal

type Rep ObjectIdentifierSuffix = D1 (MetaData "ObjectIdentifierSuffix" "Language.Asn.Types.Internal" "language-asn-0.1.0.0-CEYoCnbWRHKC4EXbCHGksq" True) (C1 (MetaCons "ObjectIdentifierSuffix" PrefixI True) (S1 (MetaSel (Just "getObjectIdentifierSuffix") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (PrimArray Word))))

data TagClass Source #

Instances
Eq TagClass Source # 
Instance details

Defined in Language.Asn.Types.Internal

Show TagClass Source # 
Instance details

Defined in Language.Asn.Types.Internal