Karya, built on 2023-08-29T07:47:28 (patch 7a412d5d6ba4968ca4155ef276a062ccdeb9109a)
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)