Safe Haskell | None |
---|---|
Language | Haskell98 |
Hooks interpreter that writes a file for each element.
- data FileInfo = FileInfo FilePath ByteString
- data WriteFileSettings = WriteFileSettings (Feed -> FeedElement -> FileInfo)
- mkCoHooks :: MonadIO m => WriteFileSettings -> CoHooksF m WriteFileSettings
- defaultSettings :: FilePath -> WriteFileSettings
- defaultFilePath :: FilePath -> Feed -> FeedElement -> FilePath
- defaultFileContent :: Feed -> FeedElement -> ByteString
- 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 -> t
Settings
data WriteFileSettings Source #
WriteFileSettings (Feed -> FeedElement -> FileInfo) |
Interpreter
mkCoHooks :: MonadIO m => WriteFileSettings -> CoHooksF m WriteFileSettings Source #
Interpreter for HooksF
:: FilePath | Root directory for |
-> WriteFileSettings |
Wrapper around defaultFilePath
and defaultFileContent
defaultFilePath :: FilePath -> Feed -> FeedElement -> FilePath Source #
defaultFileContent :: Feed -> FeedElement -> ByteString 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 -> t Source #