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 # 
Instance details

Defined in Text.OPML.Types

Methods

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

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

Show Opml # 
Instance details

Defined in Text.OPML.Types

Methods

showsPrec :: Int -> Opml -> ShowS #

show :: Opml -> String #

showList :: [Opml] -> ShowS #

Generic Opml # 
Instance details

Defined in Text.OPML.Types

Associated Types

type Rep Opml :: * -> * #

Methods

from :: Opml -> Rep Opml x #

to :: Rep Opml x -> Opml #

type Rep Opml # 
Instance details

Defined in Text.OPML.Types

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

mkOpml :: Opml #

Bare Opml. Version is set to 2.0.

OPML header

data OpmlHead #

Instances
Eq OpmlHead # 
Instance details

Defined in Text.OPML.Types

Show OpmlHead # 
Instance details

Defined in Text.OPML.Types

Generic OpmlHead # 
Instance details

Defined in Text.OPML.Types

Associated Types

type Rep OpmlHead :: * -> * #

Methods

from :: OpmlHead -> Rep OpmlHead x #

to :: Rep OpmlHead x -> OpmlHead #

type Rep OpmlHead # 
Instance details

Defined in Text.OPML.Types

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

Instances
Eq OpmlOutline # 
Instance details

Defined in Text.OPML.Types

Show OpmlOutline # 
Instance details

Defined in Text.OPML.Types

Generic OpmlOutline # 
Instance details

Defined in Text.OPML.Types

Associated Types

type Rep OpmlOutline :: * -> * #

type Rep OpmlOutline # 
Instance details

Defined in Text.OPML.Types

Generic outlines

data OutlineBase #

Instances
Eq OutlineBase # 
Instance details

Defined in Text.OPML.Types

Show OutlineBase # 
Instance details

Defined in Text.OPML.Types

Generic OutlineBase # 
Instance details

Defined in Text.OPML.Types

Associated Types

type Rep OutlineBase :: * -> * #

type Rep OutlineBase # 
Instance details

Defined in Text.OPML.Types

mkOutlineBase :: NonNull Text -> OutlineBase #

Smart constructor for OutlineBase.

Subscription outlines

data OutlineSubscription #

Instances
Eq OutlineSubscription # 
Instance details

Defined in Text.OPML.Types

Show OutlineSubscription # 
Instance details

Defined in Text.OPML.Types

Generic OutlineSubscription # 
Instance details

Defined in Text.OPML.Types

Associated Types

type Rep OutlineSubscription :: * -> * #

type Rep OutlineSubscription # 
Instance details

Defined in Text.OPML.Types