| 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 Version OpmlHead (Forest OpmlOutline)
- opmlVersion_ :: Lens' Opml Version
- head_ :: Lens' Opml OpmlHead
- outlines_ :: Lens' Opml (Forest OpmlOutline)
- data OpmlHead = OpmlHead Text (Maybe UTCTime) (Maybe UTCTime) Text Text (Maybe URI) (Maybe URI) [Int] (Maybe Int) (HashMap Direction Int)
- data Direction
- opmlTitle_ :: Lens' OpmlHead Text
- opmlCreated_ :: Lens' OpmlHead (Maybe UTCTime)
- modified_ :: Lens' OpmlHead (Maybe UTCTime)
- ownerName_ :: Lens' OpmlHead Text
- ownerEmail_ :: Lens' OpmlHead Text
- ownerId_ :: Lens' OpmlHead (Maybe URI)
- docs_ :: Lens' OpmlHead (Maybe URI)
- expansionState_ :: Lens' OpmlHead [Int]
- vertScrollState_ :: Lens' OpmlHead (Maybe Int)
- window_ :: Lens' OpmlHead (HashMap Direction Int)
- data OpmlOutline
- _OpmlOutlineGeneric :: Prism' OpmlOutline (OutlineBase, Text)
- _OpmlOutlineLink :: Prism' OpmlOutline (OutlineBase, URI)
- _OpmlOutlineSubscription :: Prism' OpmlOutline (OutlineBase, OutlineSubscription)
- data OutlineBase = OutlineBase (NonNull Text) (Maybe Bool) (Maybe Bool) (Maybe UTCTime) [NonEmpty (NonNull Text)]
- mkOutlineBase :: NonNull Text -> OutlineBase
- text_ :: Lens' OutlineBase (NonNull Text)
- isComment_ :: Lens' OutlineBase (Maybe Bool)
- isBreakpoint_ :: Lens' OutlineBase (Maybe Bool)
- outlineCreated_ :: Lens' OutlineBase (Maybe UTCTime)
- categories_ :: Lens' OutlineBase [NonEmpty (NonNull Text)]
- data OutlineSubscription = OutlineSubscription URI (Maybe URI) Text Text Text Text
- mkOutlineSubscription :: URI -> OutlineSubscription
- xmlUri_ :: Lens' OutlineSubscription URI
- htmlUri_ :: Lens' OutlineSubscription (Maybe URI)
- description_ :: Lens' OutlineSubscription Text
- language_ :: Lens' OutlineSubscription Text
- subscriptionTitle_ :: Lens' OutlineSubscription Text
- subscriptionVersion_ :: Lens' OutlineSubscription Text
Top-level OPML structure
outlines_ :: Lens' Opml (Forest OpmlOutline)
OPML header
data OpmlHead
data Direction
expansionState_ :: Lens' OpmlHead [Int]
OPML outlines
data OpmlOutline
Outlines are the main payload of an OPML document.
Constructors
| OpmlOutlineGeneric OutlineBase Text | |
| OpmlOutlineLink OutlineBase URI | |
| OpmlOutlineSubscription OutlineBase OutlineSubscription |
Instances
| Eq OpmlOutline | |
| Show OpmlOutline | |
| Generic OpmlOutline | |
| Arbitrary OpmlOutline | |
| type Rep OpmlOutline |
Generic outlines
data OutlineBase
Constructors
| OutlineBase (NonNull Text) (Maybe Bool) (Maybe Bool) (Maybe UTCTime) [NonEmpty (NonNull Text)] |
Instances
| Eq OutlineBase | |
| Show OutlineBase | |
| Generic OutlineBase | |
| Hashable OutlineBase | |
| Arbitrary OutlineBase | |
| type Rep OutlineBase |
mkOutlineBase :: NonNull Text -> OutlineBase
Smart constructor for OutlineBase.
text_ :: Lens' OutlineBase (NonNull Text)
isComment_ :: Lens' OutlineBase (Maybe Bool)
categories_ :: Lens' OutlineBase [NonEmpty (NonNull Text)]
Subscription outlines
data OutlineSubscription
Instances
mkOutlineSubscription :: URI -> OutlineSubscription
Smart constructor for OutlineSubscription