Safe Haskell | None |
---|---|
Language | Haskell2010 |
Streaming parsers for the Atom 1.0 standard.
Synopsis
- atomFeed :: MonadThrow m => ConduitM Event o m (Maybe AtomFeed)
- atomEntry :: MonadThrow m => ConduitM Event o m (Maybe AtomEntry)
- atomContent :: MonadThrow m => ConduitM Event o m (Maybe AtomContent)
- atomCategory :: MonadThrow m => ConduitM Event o m (Maybe AtomCategory)
- atomLink :: MonadThrow m => ConduitM Event o m (Maybe AtomLink)
- atomGenerator :: MonadThrow m => ConduitM Event o m (Maybe AtomGenerator)
- atomSource :: MonadThrow m => ConduitM Event o m (Maybe AtomSource)
- atomPerson :: MonadThrow m => Text -> ConduitM Event o m (Maybe AtomPerson)
- atomText :: MonadThrow m => Text -> ConduitM Event o m (Maybe AtomText)
Top-level
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&T bought by SBC!</title>
<title type="html"> AT&amp;T bought <b>by SBC</b>! </title>
<title type="xhtml"> <div xmlns="http://www.w3.org/1999/xhtml"> AT&T bought <b>by SBC</b>! </div> </title>