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 Source #

Instances

Eq Opml Source # 

Methods

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

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

Show Opml Source # 

Methods

showsPrec :: Int -> Opml -> ShowS #

show :: Opml -> String #

showList :: [Opml] -> ShowS #

Generic Opml Source # 

Associated Types

type Rep Opml :: * -> * #

Methods

from :: Opml -> Rep Opml x #

to :: Rep Opml x -> Opml #

type Rep Opml Source # 

mkOpml :: Opml Source #

Bare Opml. Version is set to 2.0.

OPML header

data OpmlHead Source #

Instances

Eq OpmlHead Source # 
Show OpmlHead Source # 
Generic OpmlHead Source # 

Associated Types

type Rep OpmlHead :: * -> * #

Methods

from :: OpmlHead -> Rep OpmlHead x #

to :: Rep OpmlHead x -> OpmlHead #

type Rep OpmlHead Source # 
type Rep OpmlHead = D1 (MetaData "OpmlHead" "Text.OPML.Types" "opml-conduit-0.6.0.4-IFnljI5PXtqCQZFSDkiVSA" 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 Source #

Bare OpmlHead, all fields are set to mempty.

OPML outlines

data OpmlOutline Source #

Outlines are the main payload of an OPML document.

Generic outlines

Subscription outlines

data OutlineSubscription Source #