| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
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>- data TextType
- data UriReference
- data AtomText
- _AtomXHTMLText :: Prism' AtomText Text
- _AtomPlainText :: Prism' AtomText (TextType, Text)
- data AtomPerson = AtomPerson {}
- personUri_ :: Lens' AtomPerson (Maybe UriReference)
- personName_ :: Lens' AtomPerson (NonNull Text)
- personEmail_ :: Lens' AtomPerson Text
- data AtomCategory = AtomCategory {}
- categoryTerm_ :: Lens' AtomCategory (NonNull Text)
- categoryScheme_ :: Lens' AtomCategory Text
- categoryLabel_ :: Lens' AtomCategory Text
- data AtomLink = AtomLink {
- _linkHref_ :: UriReference
- _linkRel_ :: Text
- _linkType_ :: Text
- _linkLang_ :: Text
- _linkTitle_ :: Text
- _linkLength_ :: Text
- linkType_ :: Lens' AtomLink Text
- linkTitle_ :: Lens' AtomLink Text
- linkRel_ :: Lens' AtomLink Text
- linkLength_ :: Lens' AtomLink Text
- linkLang_ :: Lens' AtomLink Text
- linkHref_ :: Lens' AtomLink UriReference
- data AtomGenerator = AtomGenerator {}
- generatorVersion_ :: Lens' AtomGenerator Text
- generatorUri_ :: Lens' AtomGenerator (Maybe UriReference)
- generatorContent_ :: Lens' AtomGenerator (NonNull Text)
- data AtomSource = AtomSource {
- _sourceAuthors_ :: [AtomPerson]
- _sourceCategories_ :: [AtomCategory]
- _sourceContributors_ :: [AtomPerson]
- _sourceGenerator_ :: Maybe AtomGenerator
- _sourceIcon_ :: Maybe UriReference
- _sourceId_ :: Text
- _sourceLinks_ :: [AtomLink]
- _sourceLogo_ :: Maybe UriReference
- _sourceRights_ :: Maybe AtomText
- _sourceSubtitle_ :: Maybe AtomText
- _sourceTitle_ :: Maybe AtomText
- _sourceUpdated_ :: Maybe UTCTime
- sourceUpdated_ :: Lens' AtomSource (Maybe UTCTime)
- sourceTitle_ :: Lens' AtomSource (Maybe AtomText)
- sourceSubtitle_ :: Lens' AtomSource (Maybe AtomText)
- sourceRights_ :: Lens' AtomSource (Maybe AtomText)
- sourceLogo_ :: Lens' AtomSource (Maybe UriReference)
- sourceLinks_ :: Lens' AtomSource [AtomLink]
- sourceId_ :: Lens' AtomSource Text
- sourceIcon_ :: Lens' AtomSource (Maybe UriReference)
- sourceGenerator_ :: Lens' AtomSource (Maybe AtomGenerator)
- sourceContributors_ :: Lens' AtomSource [AtomPerson]
- sourceCategories_ :: Lens' AtomSource [AtomCategory]
- sourceAuthors_ :: Lens' AtomSource [AtomPerson]
- type Type = Text
- data AtomContent
- data AtomEntry = AtomEntry {
- _entryAuthors_ :: [AtomPerson]
- _entryCategories_ :: [AtomCategory]
- _entryContent_ :: Maybe AtomContent
- _entryContributors_ :: [AtomPerson]
- _entryId_ :: NonNull Text
- _entryLinks_ :: [AtomLink]
- _entryPublished_ :: Maybe UTCTime
- _entryRights_ :: Maybe AtomText
- _entrySource_ :: Maybe AtomSource
- _entrySummary_ :: Maybe AtomText
- _entryTitle_ :: AtomText
- _entryUpdated_ :: UTCTime
- entryUpdated_ :: Lens' AtomEntry UTCTime
- entryTitle_ :: Lens' AtomEntry AtomText
- entrySummary_ :: Lens' AtomEntry (Maybe AtomText)
- entrySource_ :: Lens' AtomEntry (Maybe AtomSource)
- entryRights_ :: Lens' AtomEntry (Maybe AtomText)
- entryPublished_ :: Lens' AtomEntry (Maybe UTCTime)
- entryLinks_ :: Lens' AtomEntry [AtomLink]
- entryId_ :: Lens' AtomEntry (NonNull Text)
- entryContributors_ :: Lens' AtomEntry [AtomPerson]
- entryContent_ :: Lens' AtomEntry (Maybe AtomContent)
- entryCategories_ :: Lens' AtomEntry [AtomCategory]
- entryAuthors_ :: Lens' AtomEntry [AtomPerson]
- data AtomFeed = AtomFeed {
- _feedAuthors_ :: [AtomPerson]
- _feedCategories_ :: [AtomCategory]
- _feedContributors_ :: [AtomPerson]
- _feedEntries_ :: [AtomEntry]
- _feedGenerator_ :: Maybe AtomGenerator
- _feedIcon_ :: Maybe UriReference
- _feedId_ :: NonNull Text
- _feedLinks_ :: [AtomLink]
- _feedLogo_ :: Maybe UriReference
- _feedRights_ :: Maybe AtomText
- _feedSubtitle_ :: Maybe AtomText
- _feedTitle_ :: AtomText
- _feedUpdated_ :: UTCTime
- feedUpdated_ :: Lens' AtomFeed UTCTime
- feedTitle_ :: Lens' AtomFeed AtomText
- feedSubtitle_ :: Lens' AtomFeed (Maybe AtomText)
- feedRights_ :: Lens' AtomFeed (Maybe AtomText)
- feedLogo_ :: Lens' AtomFeed (Maybe UriReference)
- feedLinks_ :: Lens' AtomFeed [AtomLink]
- feedId_ :: Lens' AtomFeed (NonNull Text)
- feedIcon_ :: Lens' AtomFeed (Maybe UriReference)
- feedGenerator_ :: Lens' AtomFeed (Maybe AtomGenerator)
- feedEntries_ :: Lens' AtomFeed [AtomEntry]
- feedContributors_ :: Lens' AtomFeed [AtomPerson]
- feedCategories_ :: Lens' AtomFeed [AtomCategory]
- feedAuthors_ :: Lens' AtomFeed [AtomPerson]
Documentation
data UriReference Source
Either a URI, or a RelativeRef (as defined by RFC 3986)
Constructors
| UriReferenceUri URI | |
| UriReferenceRelativeRef RelativeRef |
Instances
An atom text construct.
Constructors
| AtomPlainText TextType Text | |
| AtomXHTMLText Text |
The atom:link element.
Constructors
| AtomLink | |
Fields
| |
data AtomSource Source
The atom:source element.
Constructors
Instances
data AtomContent Source
The atom:content element.
Constructors
| AtomContentInlineText TextType Text | |
| AtomContentInlineXHTML Text | |
| AtomContentInlineOther Type Text | |
| AtomContentOutOfLine Type UriReference |
Instances
The atom:entry element.
Constructors
| AtomEntry | |
Fields
| |
The atom:feed element.
Constructors
| AtomFeed | |
Fields
| |