Safe Haskell | Safe-Inferred |
---|
Synopsis
- newtype Html = Html Text
- html :: Text -> Html
- un_html :: Html -> Text
- tag :: Text -> Html -> Html
- tag_class :: Text -> Text -> Html -> Html
- link :: Text -> Text -> Html
- tag_attrs :: Text -> [(Text, Text)] -> Maybe Html -> Html
- html_doc :: HtmlState -> Doc.Doc -> Html
- type HtmlState = (FilePath, Set FilePath)
- get_html_state :: FilePath -> Path.AppDir -> IO HtmlState
Documentation
create
html_doc :: HtmlState -> Doc.Doc -> Html Source #
Format a Doc to HTML. Interpret simple markdown-like formatting: single quotes for a reference to function or module haddock, backticks for <code>, and newline for <br>.
TODO maybe support leading - for <ol>.
get_html_state :: FilePath -> Path.AppDir -> IO HtmlState Source #