feed-1.3.2.0: Interfacing with RSS (v 0.9x, 2.x, 1.0) + Atom feeds.
Copyright(c) Galois Inc. 2008
(c) Sigbjorn Finne 2009-
LicenseBSD3
MaintainerSigbjorn Finne <sof@forkIO.com>
Stabilityprovisional
Portabilityportable
Safe HaskellSafe-Inferred
LanguageHaskell2010

Text.Atom.Feed

Description

 

Documentation

type URI = Text Source #

type NCName = Text Source #

type Date = Text Source #

type MediaType = Text Source #

type Attr = (Name, [Content]) Source #

data Feed Source #

Instances

Instances details
Show Feed Source # 
Instance details

Defined in Text.Atom.Feed

Methods

showsPrec :: Int -> Feed -> ShowS

show :: Feed -> String

showList :: [Feed] -> ShowS

data Entry Source #

Instances

Instances details
Show Entry Source # 
Instance details

Defined in Text.Atom.Feed

Methods

showsPrec :: Int -> Entry -> ShowS

show :: Entry -> String

showList :: [Entry] -> ShowS

data EntryContent Source #

Constructors

TextContent Text 
HTMLContent Text 
XHTMLContent Element 
MixedContent (Maybe Text) [Node] 
ExternalContent (Maybe MediaType) URI 

Instances

Instances details
Show EntryContent Source # 
Instance details

Defined in Text.Atom.Feed

Methods

showsPrec :: Int -> EntryContent -> ShowS

show :: EntryContent -> String

showList :: [EntryContent] -> ShowS

data Category Source #

Constructors

Category 

Fields

  • catTerm :: Text

    the tag/term of the category.

  • catScheme :: Maybe URI

    optional URL for identifying the categorization scheme.

  • catLabel :: Maybe Text

    human-readable label of the category

  • catOther :: [Element]

    unknown elements, for extensibility.

Instances

Instances details
Show Category Source # 
Instance details

Defined in Text.Atom.Feed

Methods

showsPrec :: Int -> Category -> ShowS

show :: Category -> String

showList :: [Category] -> ShowS

data Generator Source #

Constructors

Generator 

Fields

Instances

Instances details
Eq Generator Source # 
Instance details

Defined in Text.Atom.Feed

Methods

(==) :: Generator -> Generator -> Bool

(/=) :: Generator -> Generator -> Bool

Show Generator Source # 
Instance details

Defined in Text.Atom.Feed

Methods

showsPrec :: Int -> Generator -> ShowS

show :: Generator -> String

showList :: [Generator] -> ShowS

data Link Source #

Constructors

Link 

Fields

Instances

data TextContent Source #

Constructors

TextString Text 
HTMLString Text 
XHTMLString Element 

Instances

Instances details
Show TextContent Source # 
Instance details

Defined in Text.Atom.Feed

Methods

showsPrec :: Int -> TextContent -> ShowS

show :: TextContent -> String

showList :: [TextContent] -> ShowS

data Source Source #

Constructors

Source 

Instances

Instances details
Show Source Source # 
Instance details

Defined in Text.Atom.Feed

Methods

showsPrec :: Int -> Source -> ShowS

show :: Source -> String

showList :: [Source] -> ShowS

data Person Source #

Constructors

Person 

Fields

Instances

Instances details
Show Person Source # 
Instance details

Defined in Text.Atom.Feed

Methods

showsPrec :: Int -> Person -> ShowS

show :: Person -> String

showList :: [Person] -> ShowS

data InReplyTo Source #

Constructors

InReplyTo 

Fields

Instances

Instances details
Show InReplyTo Source # 
Instance details

Defined in Text.Atom.Feed

Methods

showsPrec :: Int -> InReplyTo -> ShowS

show :: InReplyTo -> String

showList :: [InReplyTo] -> ShowS

data InReplyTotal Source #

Constructors

InReplyTotal 

Fields

Instances

Instances details
Show InReplyTotal Source # 
Instance details

Defined in Text.Atom.Feed

Methods

showsPrec :: Int -> InReplyTotal -> ShowS

show :: InReplyTotal -> String

showList :: [InReplyTotal] -> ShowS

newCategory Source #

Arguments

:: Text

catTerm

-> Category 

nullFeed Source #

Arguments

:: URI

feedId

-> TextContent

feedTitle

-> Date

feedUpdated

-> Feed 

nullEntry Source #

Arguments

:: URI

entryId

-> TextContent

entryTitle

-> Date

entryUpdated

-> Entry 

nullGenerator Source #

Arguments

:: Text

genText

-> Generator 

nullLink Source #

Arguments

:: URI

linkHref

-> Link