Text.Atom.Feed.Link

feed-0.3.11.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
Language | Haskell98

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

Eq LinkRelation # |
Methods (==) :: LinkRelation -> LinkRelation -> Bool # (/=) :: LinkRelation -> LinkRelation -> Bool #
Show LinkRelation # |
Methods showsPrec :: Int -> LinkRelation -> ShowS # show :: LinkRelation -> String # showList :: [LinkRelation] -> ShowS #

showLinkRelation :: LinkRelation -> String #

showLinkAttr :: LinkRelation -> String -> String #