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

Safe HaskellNone
LanguageHaskell2010

Text.Atom.Types

Description

Atom is an XML-based Web content and metadata syndication format.

Example:

<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">

  <title>Example Feed</title>
  <link href="http://example.org/"/>
  <updated>2003-12-13T18:30:02Z</updated>
  <author>
    <name>John Doe</name>
  </author>
  <id>urn:uuid:60a76c80-d399-11d9-b93C-0003939e0af6</id>

  <entry>
    <title>Atom-Powered Robots Run Amok</title>
    <link href="http://example.org/2003/12/13/atom03"/>
    <id>urn:uuid:1225c695-cfb8-4ebb-aaaa-80da344efa6a</id>
    <updated>2003-12-13T18:30:02Z</updated>
    <summary>Some text.</summary>
  </entry>

</feed>

Synopsis

Documentation

data AtomURI Source #

Constructors

AtomURI (URIRef a) 

withAtomURI :: (forall a. URIRef a -> b) -> AtomURI -> b Source #

data TextType Source #

Constructors

TypeText 
TypeHTML 

Instances

Eq TextType Source # 
Show TextType Source # 
Generic TextType Source # 

Associated Types

type Rep TextType :: * -> * #

Methods

from :: TextType -> Rep TextType x #

to :: Rep TextType x -> TextType #

type Rep TextType Source # 
type Rep TextType = D1 (MetaData "TextType" "Text.Atom.Types" "atom-conduit-0.4.0.3-43A7U0BEOkw1w3jUg6ndbA" False) ((:+:) (C1 (MetaCons "TypeText" PrefixI False) U1) (C1 (MetaCons "TypeHTML" PrefixI False) U1))

data AtomText Source #

An atom text construct.

Constructors

AtomPlainText TextType Text 
AtomXHTMLText Text

XHTML special characters will be in encoded form

data AtomPerson Source #

An atom person construct.

data AtomCategory Source #

The atom:category element.

data AtomSource Source #

The atom:source element.

Instances

Eq AtomSource Source # 
Show AtomSource Source # 
Generic AtomSource Source # 

Associated Types

type Rep AtomSource :: * -> * #

type Rep AtomSource Source # 
type Rep AtomSource = D1 (MetaData "AtomSource" "Text.Atom.Types" "atom-conduit-0.4.0.3-43A7U0BEOkw1w3jUg6ndbA" False) (C1 (MetaCons "AtomSource" PrefixI True) ((:*:) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "sourceAuthors") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [AtomPerson])) ((:*:) (S1 (MetaSel (Just Symbol "sourceCategories") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [AtomCategory])) (S1 (MetaSel (Just Symbol "sourceContributors") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [AtomPerson])))) ((:*:) (S1 (MetaSel (Just Symbol "sourceGenerator") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe AtomGenerator))) ((:*:) (S1 (MetaSel (Just Symbol "sourceIcon") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe AtomURI))) (S1 (MetaSel (Just Symbol "sourceId") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text))))) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "sourceLinks") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [AtomLink])) ((:*:) (S1 (MetaSel (Just Symbol "sourceLogo") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe AtomURI))) (S1 (MetaSel (Just Symbol "sourceRights") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe AtomText))))) ((:*:) (S1 (MetaSel (Just Symbol "sourceSubtitle") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe AtomText))) ((:*:) (S1 (MetaSel (Just Symbol "sourceTitle") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe AtomText))) (S1 (MetaSel (Just Symbol "sourceUpdated") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe UTCTime))))))))

type Type = Text Source #

data AtomContent Source #

The atom:content element.

Instances

Eq AtomContent Source # 
Show AtomContent Source # 
Generic AtomContent Source # 

Associated Types

type Rep AtomContent :: * -> * #

type Rep AtomContent Source # 

data AtomEntry Source #

The atom:entry element.

Instances

Eq AtomEntry Source # 
Show AtomEntry Source # 
Generic AtomEntry Source # 

Associated Types

type Rep AtomEntry :: * -> * #

type Rep AtomEntry Source # 
type Rep AtomEntry = D1 (MetaData "AtomEntry" "Text.Atom.Types" "atom-conduit-0.4.0.3-43A7U0BEOkw1w3jUg6ndbA" False) (C1 (MetaCons "AtomEntry" PrefixI True) ((:*:) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "entryAuthors") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [AtomPerson])) ((:*:) (S1 (MetaSel (Just Symbol "entryCategories") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [AtomCategory])) (S1 (MetaSel (Just Symbol "entryContent") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe AtomContent))))) ((:*:) (S1 (MetaSel (Just Symbol "entryContributors") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [AtomPerson])) ((:*:) (S1 (MetaSel (Just Symbol "entryId") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)) (S1 (MetaSel (Just Symbol "entryLinks") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [AtomLink]))))) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "entryPublished") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe UTCTime))) ((:*:) (S1 (MetaSel (Just Symbol "entryRights") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe AtomText))) (S1 (MetaSel (Just Symbol "entrySource") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe AtomSource))))) ((:*:) (S1 (MetaSel (Just Symbol "entrySummary") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe AtomText))) ((:*:) (S1 (MetaSel (Just Symbol "entryTitle") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 AtomText)) (S1 (MetaSel (Just Symbol "entryUpdated") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 UTCTime)))))))

data AtomFeed Source #

The atom:feed element.

Instances

Eq AtomFeed Source # 
Show AtomFeed Source # 
Generic AtomFeed Source # 

Associated Types

type Rep AtomFeed :: * -> * #

Methods

from :: AtomFeed -> Rep AtomFeed x #

to :: Rep AtomFeed x -> AtomFeed #

type Rep AtomFeed Source # 
type Rep AtomFeed = D1 (MetaData "AtomFeed" "Text.Atom.Types" "atom-conduit-0.4.0.3-43A7U0BEOkw1w3jUg6ndbA" False) (C1 (MetaCons "AtomFeed" PrefixI True) ((:*:) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "feedAuthors") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [AtomPerson])) ((:*:) (S1 (MetaSel (Just Symbol "feedCategories") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [AtomCategory])) (S1 (MetaSel (Just Symbol "feedContributors") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [AtomPerson])))) ((:*:) (S1 (MetaSel (Just Symbol "feedEntries") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [AtomEntry])) ((:*:) (S1 (MetaSel (Just Symbol "feedGenerator") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe AtomGenerator))) (S1 (MetaSel (Just Symbol "feedIcon") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe AtomURI)))))) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "feedId") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)) ((:*:) (S1 (MetaSel (Just Symbol "feedLinks") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [AtomLink])) (S1 (MetaSel (Just Symbol "feedLogo") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe AtomURI))))) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "feedRights") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe AtomText))) (S1 (MetaSel (Just Symbol "feedSubtitle") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe AtomText)))) ((:*:) (S1 (MetaSel (Just Symbol "feedTitle") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 AtomText)) (S1 (MetaSel (Just Symbol "feedUpdated") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 UTCTime)))))))