mathiassm
Safe HaskellNone
LanguageGHC2024

MathiasSM.Feeds

Description

The Atom feeds: one per post group, described by the group's index page

Synopsis

Documentation

data Feed #

Constructors

Feed 

Fields

Instances

Instances details
Show Feed # 
Instance details

Defined in MathiasSM.Feeds

Methods

showsPrec :: Int -> Feed -> ShowS #

show :: Feed -> String #

showList :: [Feed] -> ShowS #

Eq Feed # 
Instance details

Defined in MathiasSM.Feeds

Methods

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

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

feedHref :: Feed -> String #

Where the feed is served from

feeds :: MonadMetadata m => m (Either [String] [Feed]) #

The feed of every post group, or every problem found

Each feed lives next to the group's index page (`blog` has `blog/atom.xml`) and takes its title and description from that page.

absoluteUrl :: String -> String -> String #

Makes a root-relative URL (`/contact`) absolute, as feed readers have no page to resolve it against.

Anything else (full URLs, `//host`, `#anchor`, `mailto:`, relative paths) is left alone.