Safe Haskell | None |
---|---|
Language | Haskell2010 |
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>
- data AtomURI = AtomURI (URIRef a)
- withAtomURI :: (forall a. URIRef a -> b) -> AtomURI -> b
- data TextType
- data AtomText
- data AtomPerson = AtomPerson {}
- data AtomCategory = AtomCategory {}
- data AtomLink = AtomLink {}
- data AtomGenerator = AtomGenerator {}
- data AtomSource = AtomSource {
- sourceAuthors :: [AtomPerson]
- sourceCategories :: [AtomCategory]
- sourceContributors :: [AtomPerson]
- sourceGenerator :: Maybe AtomGenerator
- sourceIcon :: Maybe AtomURI
- sourceId :: Text
- sourceLinks :: [AtomLink]
- sourceLogo :: Maybe AtomURI
- sourceRights :: Maybe AtomText
- sourceSubtitle :: Maybe AtomText
- sourceTitle :: Maybe AtomText
- sourceUpdated :: Maybe UTCTime
- type Type = Text
- data AtomContent
- data AtomEntry = AtomEntry {
- entryAuthors :: [AtomPerson]
- entryCategories :: [AtomCategory]
- entryContent :: Maybe AtomContent
- entryContributors :: [AtomPerson]
- entryId :: Text
- entryLinks :: [AtomLink]
- entryPublished :: Maybe UTCTime
- entryRights :: Maybe AtomText
- entrySource :: Maybe AtomSource
- entrySummary :: Maybe AtomText
- entryTitle :: AtomText
- entryUpdated :: UTCTime
- data AtomFeed = AtomFeed {
- feedAuthors :: [AtomPerson]
- feedCategories :: [AtomCategory]
- feedContributors :: [AtomPerson]
- feedEntries :: [AtomEntry]
- feedGenerator :: Maybe AtomGenerator
- feedIcon :: Maybe AtomURI
- feedId :: Text
- feedLinks :: [AtomLink]
- feedLogo :: Maybe AtomURI
- feedRights :: Maybe AtomText
- feedSubtitle :: Maybe AtomText
- feedTitle :: AtomText
- feedUpdated :: UTCTime
Documentation
withAtomURI :: (forall a. URIRef a -> b) -> AtomURI -> b Source #
An atom text construct.
AtomPlainText TextType Text | |
AtomXHTMLText Text | XHTML special characters will be in encoded form |
data AtomPerson Source #
An atom person construct.
AtomPerson | |
|
data AtomCategory Source #
The atom:category
element.
The atom:link
element.
data AtomSource Source #
The atom:source
element.
AtomSource | |
|
data AtomContent Source #
The atom:content
element.
The atom:entry
element.
AtomEntry | |
|
The atom:feed
element.
AtomFeed | |
|