Safe Haskell | None |
---|---|
Language | Haskell98 |
Formatting and pretty-printing header types.
Synopsis
- 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
Message IDs
messageIDList :: [MessageID] -> Doc Source #
Format a list of message identifiers.
Text
phrase :: Text -> Doc Source #
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
contentType :: MimeType -> Parameters -> Doc Source #
Format the content type and parameters.
contentTransferEncoding :: CI ByteString -> Doc Source #
Format the content transfer encoding.