atom-conduit-0.4.0.3: Streaming parser/renderer for the Atom 1.0 standard (RFC 4287).

Safe HaskellNone
LanguageHaskell2010

Text.Atom.Conduit.Parse

Contents

Description

Streaming parsers for the Atom 1.0 standard.

Synopsis

Top-level

atomFeed :: MonadThrow m => ConduitM Event o m (Maybe AtomFeed) Source #

Parse an atom:feed element.

Elements

atomEntry :: MonadThrow m => ConduitM Event o m (Maybe AtomEntry) Source #

Parse an atom:entry element.

atomContent :: MonadThrow m => ConduitM Event o m (Maybe AtomContent) Source #

Parse an atom:content element.

atomCategory :: MonadThrow m => ConduitM Event o m (Maybe AtomCategory) Source #

Parse an atom:category element. Example:

<category term="sports"/>

atomLink :: MonadThrow m => ConduitM Event o m (Maybe AtomLink) Source #

Parse an atom:link element. Examples:

<link rel="self" href="/feed" />
<link rel="alternate" href="/blog/1234"/>

atomGenerator :: MonadThrow m => ConduitM Event o m (Maybe AtomGenerator) Source #

Parse an atom:generator element. Example:

<generator uri="/myblog.php" version="1.0">
  Example Toolkit
</generator>

atomSource :: MonadThrow m => ConduitM Event o m (Maybe AtomSource) Source #

Parse an atom:source element. Example:

<source>
  <id>http://example.org/</id>
  <title>Fourty-Two</title>
  <updated>2003-12-13T18:30:02Z</updated>
  <rights>© 2005 Example, Inc.</rights>
</source>

Constructs

atomPerson :: MonadThrow m => Text -> ConduitM Event o m (Maybe AtomPerson) Source #

Parse an Atom person construct. Example:

<author>
  <name>John Doe</name>
  <email>JohnDoe@example.com</email>
  <uri>http://example.com/~johndoe</uri>
</author>

atomText :: MonadThrow m => Text -> ConduitM Event o m (Maybe AtomText) Source #

Parse an Atom text construct. Examples:

<title type="text">AT&amp;T bought by SBC!</title>
<title type="html">
  AT&amp;amp;T bought &lt;b&gt;by SBC&lt;/b&gt;!
</title>
<title type="xhtml">
  <div xmlns="http://www.w3.org/1999/xhtml">
    AT&amp;T bought <b>by SBC</b>!
  </div>
</title>