HORIZON HASKELLDocslts/ghc-9.14.x45dd5372026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 9.14.1 · lts/ghc-9.14.x · 45dd537 · 2026-10-11

Modulecrypton-asn1-parse-0.10.0Haskell98

Data.ASN1.Parse

A monadic parser combinator for a stream of ASN.1 items.

  • 1 type
  • 12 values
newtypenewtype ParseASN1 a
#

Type representing a parser combinator for a stream of ASN.1 items.

Instances5Monad, Functor, MonadFail, Applicative, Alternative

Run ParseASN1

3 declarations
valuerunParseASN1 :: ParseASN1 a -> [ASN1] -> Either String a
#

Run the given parse monad over the given list of ASN.1 items and returns the result (if successful).

If ASN.1 items remain in the stream after doing so, returns an error.

Combinators

9 declarations
valuegetObject :: ASN1Object a => ParseASN1 a
#

Get the object from the next ASN.1 item in a stream of ASN.1 items. Throws a parse error if the object cannot be obtained from the item.