Safe Haskell | None |
---|---|
Language | Haskell98 |
Implementation of Imm.Hooks that writes a file for each new RSS/Atom item.
Synopsis
- data FileInfo = FileInfo FilePath Builder
- newtype WriteFileSettings = WriteFileSettings (Feed -> FeedElement -> FileInfo)
- 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
- convertAtomURI :: IsString t => AtomURI -> t
- convertURI :: IsString t => URIRef a -> t
- convertText :: IsString t => Text -> t
- convertDoc :: IsString t => Doc a -> t
Types
newtype WriteFileSettings Source #
WriteFileSettings (Feed -> FeedElement -> FileInfo) |
Default behavior
:: 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
Low-level helpers
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 #