opml-conduit-0.8.0.0: 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 # 
Instance details

Defined in Text.OPML.Types

Methods

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

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

Show Opml Source # 
Instance details

Defined in Text.OPML.Types

Methods

showsPrec :: Int -> Opml -> ShowS #

show :: Opml -> String #

showList :: [Opml] -> ShowS #

Generic Opml Source # 
Instance details

Defined in Text.OPML.Types

Associated Types

type Rep Opml :: Type -> Type #

Methods

from :: Opml -> Rep Opml x #

to :: Rep Opml x -> Opml #

type Rep Opml Source # 
Instance details

Defined in Text.OPML.Types

type Rep Opml = D1 (MetaData "Opml" "Text.OPML.Types" "opml-conduit-0.8.0.0-2ewmz807hM9CLN8pmjf3zW" 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 Source #

Bare Opml. Version is set to 2.0.

OPML header

data OpmlHead Source #

Instances
Eq OpmlHead Source # 
Instance details

Defined in Text.OPML.Types

Show OpmlHead Source # 
Instance details

Defined in Text.OPML.Types

Generic OpmlHead Source # 
Instance details

Defined in Text.OPML.Types

Associated Types

type Rep OpmlHead :: Type -> Type #

Methods

from :: OpmlHead -> Rep OpmlHead x #

to :: Rep OpmlHead x -> OpmlHead #

type Rep OpmlHead Source # 
Instance details

Defined in Text.OPML.Types

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

Bare OpmlHead, all fields are set to mempty.

OPML outlines

data OpmlOutline Source #

Outlines are the main payload of an OPML document.

Instances
Eq OpmlOutline Source # 
Instance details

Defined in Text.OPML.Types

Show OpmlOutline Source # 
Instance details

Defined in Text.OPML.Types

Generic OpmlOutline Source # 
Instance details

Defined in Text.OPML.Types

Associated Types

type Rep OpmlOutline :: Type -> Type #

type Rep OpmlOutline Source # 
Instance details

Defined in Text.OPML.Types

type Rep OpmlOutline = D1 (MetaData "OpmlOutline" "Text.OPML.Types" "opml-conduit-0.8.0.0-2ewmz807hM9CLN8pmjf3zW" False) (C1 (MetaCons "OpmlOutlineGeneric" PrefixI True) (S1 (MetaSel (Just "opmlOutlineBase") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 OutlineBase) :*: S1 (MetaSel (Just "opmlOutlineContent") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)) :+: (C1 (MetaCons "OpmlOutlineLink" PrefixI True) (S1 (MetaSel (Just "opmlOutlineBase") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 OutlineBase) :*: S1 (MetaSel (Just "opmlOutlineUri") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 URI)) :+: C1 (MetaCons "OpmlOutlineSubscription" PrefixI True) (S1 (MetaSel (Just "opmlOutlineBase") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 OutlineBase) :*: S1 (MetaSel (Just "opmlOutlineSubscription") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 OutlineSubscription))))

Generic outlines

data OutlineBase Source #

Instances
Eq OutlineBase Source # 
Instance details

Defined in Text.OPML.Types

Show OutlineBase Source # 
Instance details

Defined in Text.OPML.Types

Generic OutlineBase Source # 
Instance details

Defined in Text.OPML.Types

Associated Types

type Rep OutlineBase :: Type -> Type #

type Rep OutlineBase Source # 
Instance details

Defined in Text.OPML.Types

Subscription outlines

data OutlineSubscription Source #

Instances
Eq OutlineSubscription Source # 
Instance details

Defined in Text.OPML.Types

Show OutlineSubscription Source # 
Instance details

Defined in Text.OPML.Types

Generic OutlineSubscription Source # 
Instance details

Defined in Text.OPML.Types

Associated Types

type Rep OutlineSubscription :: Type -> Type #

type Rep OutlineSubscription Source # 
Instance details

Defined in Text.OPML.Types

Others

data Null Source #

Predicate on Text, true iff text is null.

Instances
Predicate Null Text Source # 
Instance details

Defined in Text.OPML.Types

Methods

validate :: Monad m => Null -> Text -> RefineT m () #