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>
Synopsis
- 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
- 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 AtomContent
- type ContentType = Text
- 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
- data AtomGenerator = AtomGenerator {}
- data AtomLink = AtomLink {}
- data AtomCategory = AtomCategory {
- categoryTerm :: Refined (Not Null) Text
- categoryScheme :: Text
- categoryLabel :: Text
- data AtomPerson = AtomPerson {
- personName :: Refined (Not Null) Text
- personEmail :: Text
- personUri :: Maybe AtomURI
- data AtomText
- data TextType
- data AtomURI = AtomURI (URIRef a)
- data Null
- withAtomURI :: (forall a. URIRef a -> b) -> AtomURI -> b
Documentation
The atom:feed
element.
AtomFeed | |
|
Instances
The atom:entry
element.
AtomEntry | |
|
Instances
data AtomContent Source #
The atom:content
element.
AtomContentInlineText TextType Text | |
AtomContentInlineXHTML Element | |
AtomContentInlineOther ContentType Text | |
AtomContentOutOfLine ContentType AtomURI |
Instances
type ContentType = Text Source #
data AtomSource Source #
The atom:source
element.
AtomSource | |
|
Instances
data AtomGenerator Source #
The atom:generator
element.
AtomGenerator | |
|
Instances
The atom:link
element.
Instances
Eq AtomLink Source # | |
Ord AtomLink Source # | |
Defined in Text.Atom.Types | |
Show AtomLink Source # | |
Generic AtomLink Source # | |
type Rep AtomLink Source # | |
Defined in Text.Atom.Types type Rep AtomLink = D1 (MetaData "AtomLink" "Text.Atom.Types" "atom-conduit-0.9.0.0-JoCQYzS5E35Dpt01osCfWc" False) (C1 (MetaCons "AtomLink" PrefixI True) ((S1 (MetaSel (Just "linkHref") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 AtomURI) :*: (S1 (MetaSel (Just "linkRel") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text) :*: S1 (MetaSel (Just "linkType") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text))) :*: (S1 (MetaSel (Just "linkLang") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text) :*: (S1 (MetaSel (Just "linkTitle") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text) :*: S1 (MetaSel (Just "linkLength") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text))))) |
data AtomCategory Source #
The atom:category
element.
AtomCategory | |
|
Instances
data AtomPerson Source #
An atom person construct.
AtomPerson | |
|
Instances
An atom text construct.
Instances
Eq AtomText Source # | |
Ord AtomText Source # | |
Defined in Text.Atom.Types | |
Show AtomText Source # | |
Generic AtomText Source # | |
type Rep AtomText Source # | |
Defined in Text.Atom.Types type Rep AtomText = D1 (MetaData "AtomText" "Text.Atom.Types" "atom-conduit-0.9.0.0-JoCQYzS5E35Dpt01osCfWc" False) (C1 (MetaCons "AtomPlainText" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 TextType) :*: S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)) :+: C1 (MetaCons "AtomXHTMLText" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Element))) |
withAtomURI :: (forall a. URIRef a -> b) -> AtomURI -> b Source #