Safe Haskell | None |
---|---|
Language | Haskell98 |
Implementation of Imm.Hooks that writes a file for each new RSS/Atom item.
Synopsis
- newtype WriteFileSettings = WriteFileSettings (Feed -> FeedElement -> FileInfo)
- data FileInfo = FileInfo FilePath Builder
- mkHandle :: MonadBase IO m => MonadIO m => MonadMask m => WriteFileSettings -> Handle m
- defaultSettings :: FilePath -> WriteFileSettings
- defaultFilePath :: FilePath -> Feed -> FeedElement -> FilePath
- defaultFileContent :: Feed -> FeedElement -> Builder
- defaultArticleTitle :: Feed -> FeedElement -> Html
- defaultArticleAuthor :: Feed -> FeedElement -> Html
- defaultArticleDate :: Feed -> FeedElement -> Html
- defaultBody :: Feed -> FeedElement -> Html
- href :: URIRef a -> Attribute
- convertAtomURI :: IsString t => AtomURI -> t
- convertURI :: IsString t => URIRef a -> t
- convertText :: IsString t => Text -> t
- convertDoc :: IsString t => Doc a -> t
- module Imm.Hooks
Documentation
newtype WriteFileSettings Source #
WriteFileSettings (Feed -> FeedElement -> FileInfo) |
:: FilePath | Root directory for |
-> WriteFileSettings |
Wrapper around defaultFilePath
and defaultFileContent
defaultFilePath :: FilePath -> Feed -> FeedElement -> FilePath Source #
defaultFileContent :: Feed -> FeedElement -> Builder Source #
Generate an HTML page, with a title, a header and an article that contains the feed element
defaultArticleTitle :: Feed -> FeedElement -> Html Source #
defaultArticleAuthor :: Feed -> FeedElement -> Html Source #
defaultArticleDate :: Feed -> FeedElement -> Html Source #
defaultBody :: Feed -> FeedElement -> Html Source #
Generate the HTML content for a given feed element
convertAtomURI :: IsString t => AtomURI -> t Source #
convertURI :: IsString t => URIRef a -> t Source #
convertText :: IsString t => Text -> t Source #
convertDoc :: IsString t => Doc a -> t Source #
module Imm.Hooks