Text.Atom.Feed.Link

feed-1.3.2.1: Interfacing with RSS (v 0.9x, 2.x, 1.0) + Atom feeds.

Copyright | (c) Galois Inc. 2008 (c) Sigbjorn Finne 2009-
License | BSD3
Maintainer | Sigbjorn Finne <sof@forkIO.com>
Stability | provisional
Portability | portable
Safe Haskell | Safe-Inferred
Language | Haskell2010

Text.Atom.Feed.Link

Description

Synopsis

- data LinkRelation
  - = LinkAlternate
  - | LinkCurrent
  - | LinkEnclosure
  - | LinkEdit
  - | LinkEditMedia
  - | LinkFirst
  - | LinkLast
  - | LinkLicense
  - | LinkNext
  - | LinkNextArchive
  - | LinkPayment
  - | LinkPrevArchive
  - | LinkPrevious
  - | LinkRelated
  - | LinkReplies
  - | LinkSelf
  - | LinkVia
  - | LinkOther String
- showLinkRelation :: LinkRelation -> String
- showLinkAttr :: LinkRelation -> String -> String

# Documentation

data LinkRelation #

Atom feeds uses typed IRI links to represent information / metadata that is of interest to the consumers (software, in the main) of feeds. For instance, the edit link relation attached to an atom:entry element points to the IRI to use to update/edit it.

The Atom standard encourages that such typed links to be registered with IANA if they have wider applicability, and the `LinkRelation` data type encodes the currently registered link types (derived from: http://www.iana.org/assignments/link-relations.html on 2007-10-28]

Constructors

LinkAlternate |
LinkCurrent |
LinkEnclosure |
LinkEdit |
LinkEditMedia |
LinkFirst |
LinkLast |
LinkLicense |
LinkNext |
LinkNextArchive |
LinkPayment |
LinkPrevArchive |
LinkPrevious |
LinkRelated |
LinkReplies |
LinkSelf |
LinkVia |
LinkOther String |

#### Instances

Instances details

Show LinkRelation # |
Instance details Defined in Text.Atom.Feed.Link Methods showsPrec :: Int -> LinkRelation -> ShowS # show :: LinkRelation -> String # showList :: [LinkRelation] -> ShowS #
Eq LinkRelation # |
Instance details Defined in Text.Atom.Feed.Link Methods (==) :: LinkRelation -> LinkRelation -> Bool # (/=) :: LinkRelation -> LinkRelation -> Bool #

showLinkRelation :: LinkRelation -> String #

showLinkAttr :: LinkRelation -> String -> String #