Safe Haskell | None |
---|---|
Language | Haskell98 |
Formatting and pretty-printing header types.
- commaSep :: (a -> Doc) -> [a] -> Doc
- dateTime :: ZonedTime -> Doc
- address :: Address -> Doc
- mailbox :: Mailbox -> Doc
- mailboxList :: [Mailbox] -> Doc
- recipient :: Recipient -> Doc
- recipientList :: [Recipient] -> Doc
- messageID :: MessageID -> Doc
- messageIDList :: [MessageID] -> Doc
- phrase :: Text -> Doc
- phraseList :: [Text] -> Doc
- unstructured :: Text -> Doc
- mimeVersion :: Int -> Int -> Doc
- contentType :: MimeType -> Parameters -> Doc
- contentTransferEncoding :: CI ByteString -> Doc
Combinators
Date and time
Addresses
mailboxList :: [Mailbox] -> Doc Source
Format a list of Mailbox
es.
recipientList :: [Recipient] -> Doc Source
Format a list of Recipient
s.
Message IDs
messageIDList :: [MessageID] -> Doc Source
Format a list of message identifiers.
Text
Format a phrase. The text is encoded as is, unless:
- The text contains leading or trailing whitespace, or more than one space between words
- Any word begins with
=?
- Any word contains illegal characters
phraseList :: [Text] -> Doc Source
Format a list of phrases.
unstructured :: Text -> Doc Source
Format unstructured text. The text is encoded as is, unless:
- The text contains leading or trailing whitespace, or more than one space between words
- Any word begins with
=?
- Any word contains illegal characters
MIME
mimeVersion :: Int -> Int -> Doc Source
Format the MIME version.
contentType :: MimeType -> Parameters -> Doc Source
Format the content type and parameters.
contentTransferEncoding :: CI ByteString -> Doc Source
Format the content transfer encoding.