pem-0.2.4: Privacy Enhanced Mail (PEM) format reader and writer.
LicenseBSD-style
MaintainerVincent Hanquez <vincent@snarc.org>
Stabilityexperimental
Portabilityportable
Safe HaskellNone
LanguageHaskell98

Data.PEM

Description

Read and write PEM files

Synopsis

Documentation

data PEM Source #

Represent one PEM section

for now headers are not serialized at all. this is just available here as a placeholder for a later implementation.

Constructors

PEM 

Fields

Instances

Instances details
Eq PEM Source # 
Instance details

Defined in Data.PEM.Types

Methods

(==) :: PEM -> PEM -> Bool #

(/=) :: PEM -> PEM -> Bool #

Show PEM Source # 
Instance details

Defined in Data.PEM.Types

Methods

showsPrec :: Int -> PEM -> ShowS #

show :: PEM -> String #

showList :: [PEM] -> ShowS #

NormalForm PEM Source # 
Instance details

Defined in Data.PEM.Types

Methods

toNormalForm :: PEM -> () #

pemWriteLBS :: PEM -> ByteString Source #

convert a PEM structure to a lazy bytestring

pemWriteBS :: PEM -> ByteString Source #

convert a PEM structure to a bytestring

pemParseBS :: ByteString -> Either String [PEM] Source #

parse a PEM content using a strict bytestring

pemParseLBS :: ByteString -> Either String [PEM] Source #

parse a PEM content using a dynamic bytestring