| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Text.OPML.Types
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>- data Opml = Opml {}
- mkOpml :: Opml
- data OpmlHead = OpmlHead {
- opmlTitle :: Text
- opmlCreated :: Maybe UTCTime
- modified :: Maybe UTCTime
- ownerName :: Text
- ownerEmail :: Text
- ownerId :: Maybe URI
- docs :: Maybe URI
- expansionState :: [Int]
- vertScrollState :: Maybe Int
- windowBottom :: Maybe Int
- windowLeft :: Maybe Int
- windowRight :: Maybe Int
- windowTop :: Maybe Int
- mkOpmlHead :: OpmlHead
- data OpmlOutline
- data OutlineBase = OutlineBase {}
- mkOutlineBase :: NonNull Text -> OutlineBase
- data OutlineSubscription = OutlineSubscription {
- xmlUri :: URI
- htmlUri :: Maybe URI
- description :: Text
- language :: Text
- subscriptionTitle :: Text
- subscriptionVersion :: Text
- mkOutlineSubscription :: URI -> OutlineSubscription
Top-level OPML structure
Constructors
| Opml | |
Fields | |
OPML header
Constructors
| OpmlHead | |
Fields
| |
OPML outlines
data OpmlOutline Source #
Outlines are the main payload of an OPML document.
Constructors
| OpmlOutlineGeneric OutlineBase Text | |
| OpmlOutlineLink OutlineBase URI | |
| OpmlOutlineSubscription OutlineBase OutlineSubscription |
Instances
Generic outlines
mkOutlineBase :: NonNull Text -> OutlineBase Source #
Smart constructor for OutlineBase.
Subscription outlines
data OutlineSubscription Source #
Constructors
| OutlineSubscription | |
Fields
| |
Instances
mkOutlineSubscription :: URI -> OutlineSubscription Source #
Smart constructor for OutlineSubscription