Karya, built on 2022-03-21T01:30:44 (patch 89d1651424c35e564138d93424a157ff87457245)
Safe HaskellSafe-Inferred

Util.Html

Contents

Synopsis

Documentation

newtype Html Source #

Constructors

Html Text 

Instances

Instances details
String.IsString Html Source # 
Instance details

Defined in Util.Html

Monoid Html Source # 
Instance details

Defined in Util.Html

Methods

mempty :: Html #

mappend :: Html -> Html -> Html #

mconcat :: [Html] -> Html #

Semigroup Html Source # 
Instance details

Defined in Util.Html

Methods

(<>) :: Html -> Html -> Html #

sconcat :: NonEmpty Html -> Html #

stimes :: Integral b => b -> Html -> Html #

Show Html Source # 
Instance details

Defined in Util.Html

Eq Html Source # 
Instance details

Defined in Util.Html

Methods

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

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

Ord Html Source # 
Instance details

Defined in Util.Html

Methods

compare :: Html -> Html -> Ordering #

(<) :: Html -> Html -> Bool #

(<=) :: Html -> Html -> Bool #

(>) :: Html -> Html -> Bool #

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

max :: Html -> Html -> Html #

min :: Html -> Html -> Html #

Pretty.Pretty Html Source # 
Instance details

Defined in Util.Html

Texts.Textlike Html Source # 
Instance details

Defined in Util.Html

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>.

type HtmlState = (FilePath, Set FilePath) Source #

(haddock_dir, directory_tree)