opml-conduit-0.6.0.4: Streaming parser/renderer for the OPML 2.0 format.

Safe HaskellNone
LanguageHaskell2010

Text.OPML.Types

Contents

Description

OPML is an XML format for outlines.

Example:

<opml version="2.0">
  <head>
    <title>OPML title</title>
    <dateCreated>Mon, 31 Oct 2005 19:23:00 GMT</dateCreated>
  </head>
  <body>
    <outline text="Outline 1" created="Mon, 31 Oct 2005 18:21:33 GMT"/>
    <outline text="Outline 2" created="Mon, 31 Oct 2005 18:21:33 GMT"/>
  </body>
</opml>

Synopsis

Top-level OPML structure

data Opml #

Instances

Eq Opml # 

Methods

(==) :: Opml -> Opml -> Bool #

(/=) :: Opml -> Opml -> Bool #

Show Opml # 

Methods

showsPrec :: Int -> Opml -> ShowS #

show :: Opml -> String #

showList :: [Opml] -> ShowS #

Generic Opml # 

Associated Types

type Rep Opml :: * -> * #

Methods

from :: Opml -> Rep Opml x #

to :: Rep Opml x -> Opml #

type Rep Opml # 
type Rep Opml = D1 * (MetaData "Opml" "Text.OPML.Types" "opml-conduit-0.6.0.4-YV7psI0raPCDATsQ1Bscm" False) (C1 * (MetaCons "Opml" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "opmlVersion") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Version)) ((:*:) * (S1 * (MetaSel (Just Symbol "opmlHead") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * OpmlHead)) (S1 * (MetaSel (Just Symbol "opmlOutlines") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * (Forest OpmlOutline))))))

mkOpml :: Opml #

Bare Opml. Version is set to 2.0.

OPML header

data OpmlHead #

Instances

Eq OpmlHead # 
Show OpmlHead # 
Generic OpmlHead # 

Associated Types

type Rep OpmlHead :: * -> * #

Methods

from :: OpmlHead -> Rep OpmlHead x #

to :: Rep OpmlHead x -> OpmlHead #

type Rep OpmlHead # 
type Rep OpmlHead = D1 * (MetaData "OpmlHead" "Text.OPML.Types" "opml-conduit-0.6.0.4-YV7psI0raPCDATsQ1Bscm" False) (C1 * (MetaCons "OpmlHead" PrefixI True) ((:*:) * ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "opmlTitle") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Text)) ((:*:) * (S1 * (MetaSel (Just Symbol "opmlCreated") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * (Maybe UTCTime))) (S1 * (MetaSel (Just Symbol "modified") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * (Maybe UTCTime))))) ((:*:) * (S1 * (MetaSel (Just Symbol "ownerName") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Text)) ((:*:) * (S1 * (MetaSel (Just Symbol "ownerEmail") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Text)) (S1 * (MetaSel (Just Symbol "ownerId") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * (Maybe URI)))))) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "docs") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * (Maybe URI))) ((:*:) * (S1 * (MetaSel (Just Symbol "expansionState") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * [Int])) (S1 * (MetaSel (Just Symbol "vertScrollState") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * (Maybe Int))))) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "windowBottom") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * (Maybe Int))) (S1 * (MetaSel (Just Symbol "windowLeft") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * (Maybe Int)))) ((:*:) * (S1 * (MetaSel (Just Symbol "windowRight") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * (Maybe Int))) (S1 * (MetaSel (Just Symbol "windowTop") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * (Maybe Int))))))))

mkOpmlHead :: OpmlHead #

Bare OpmlHead, all fields are set to mempty.

OPML outlines

data OpmlOutline #

Outlines are the main payload of an OPML document.

Generic outlines

mkOutlineBase :: NonNull Text -> OutlineBase #

Smart constructor for OutlineBase.

Subscription outlines

data OutlineSubscription #