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 #

Constructors

AtomURI (URIRef a) 

Instances

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

data TextType #

Constructors

TypeText 
TypeHTML 

Instances

Eq TextType # 
Show TextType # 
Generic TextType # 

Associated Types

type Rep TextType :: * -> * #

Methods

from :: TextType -> Rep TextType x #

to :: Rep TextType x -> TextType #

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

data AtomText #

An atom text construct.

Constructors

AtomPlainText TextType Text 
AtomXHTMLText Text

XHTML special characters will be in encoded form

data AtomPerson #

An atom person construct.

Instances

data AtomCategory #

The atom:category element.

Instances

data AtomGenerator #

The atom:generator element.

data AtomSource #

The atom:source element.

Instances

Eq AtomSource # 
Show AtomSource # 
Generic AtomSource # 

Associated Types

type Rep AtomSource :: * -> * #

type Rep AtomSource # 
type Rep AtomSource = D1 (MetaData "AtomSource" "Text.Atom.Types" "atom-conduit-0.4.0.3-97cLShDn0ysLebIVR09sl6" 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 #

data AtomContent #

The atom:content element.

Instances

Eq AtomContent # 
Show AtomContent # 
Generic AtomContent # 

Associated Types

type Rep AtomContent :: * -> * #

type Rep AtomContent # 

data AtomEntry #

The atom:entry element.

Instances

Eq AtomEntry # 
Show AtomEntry # 
Generic AtomEntry # 

Associated Types

type Rep AtomEntry :: * -> * #

type Rep AtomEntry # 
type Rep AtomEntry = D1 (MetaData "AtomEntry" "Text.Atom.Types" "atom-conduit-0.4.0.3-97cLShDn0ysLebIVR09sl6" 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 #

The atom:feed element.

Instances

Eq AtomFeed # 
Show AtomFeed # 
Generic AtomFeed # 

Associated Types

type Rep AtomFeed :: * -> * #

Methods

from :: AtomFeed -> Rep AtomFeed x #

to :: Rep AtomFeed x -> AtomFeed #

type Rep AtomFeed # 
type Rep AtomFeed = D1 (MetaData "AtomFeed" "Text.Atom.Types" "atom-conduit-0.4.0.3-97cLShDn0ysLebIVR09sl6" 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)))))))