addy-0.1.0.1: A full-featured library for parsing, validating, and rendering email addresses
CopyrightThis file is part of the package addy. It is subject to the license
terms in the LICENSE file found in the top-level directory of this
distribution and at:

https://code.devalot.com/open/addy

No part of this package including this file may be copied
modified propagated or distributed except according to the terms
contained in the LICENSE file.
LicenseBSD-2-Clause
Safe HaskellNone
LanguageHaskell2010

Addy.Internal.Render

Description

Internal functions to render an EmailAddr to a Builder.

Synopsis

Documentation

data Mode Source #

Render mode.

Since: 0.1.0.0

Constructors

Full

Render the entire email address, including the optional display name and comments.

Short

Only render the simplest form of the email address. Only the LocalPart and Domain are rendered in this mode.

render :: Mode -> EmailAddr -> Builder Source #

Render an email address.

Since: 0.1.0.0

renderToText :: Mode -> EmailAddr -> Text Source #

Render the given address as text.

Since: 0.1.0.0

renderAddrSpec :: Mode -> EmailAddr -> Builder Source #

Render an email address in addr-spec format.

Since: 0.1.0.0

renderDisplayName :: DisplayName -> Builder Source #

Render a display name.

Since: 0.1.0.0

renderComments :: Mode -> CommentLoc -> [Comment] -> Builder Source #

Render comments that have the given CommentLoc. The comment location is also used to decide where to introduce white space.

Since: 0.1.0.0

Orphan instances

Show EmailAddr Source # 
Instance details