type-of-html-1.6.2.0: High performance type driven html generation.
Safe HaskellNone
LanguageHaskell2010

Html

Synopsis

Documentation

module Html.Type

renderString :: Document a => a -> String Source #

Render a html document to a String.

renderText :: Document a => a -> Text Source #

Render a html document to a lazy Text.

renderByteString :: Document a => a -> ByteString Source #

Render a html document to a lazy ByteString.

renderBuilder :: Document a => a -> Builder Source #

Render a html document to a Builder.

compactHTML :: Compactable a => a -> CompactHTML (Variables a) Source #

Compact a html document.

renderCompactString :: Retrievable a => CompactHTML a -> Retrieve String a Source #

Render a compacted html document to a String.

renderCompactText :: Retrievable a => CompactHTML a -> Retrieve Text a Source #

Render a compacted html document to a lazy Text.

renderCompactByteString :: Retrievable a => CompactHTML a -> Retrieve ByteString a Source #

Render a compacted html document to a lazy ByteString.

renderCompactBuilder :: Retrievable a => CompactHTML a -> Retrieve Builder a Source #

Render a compacted html document to a Builder.

data Put (n :: Symbol) Source #

Data for putting variables into a rendered compacted html document.

Constructors

forall a.Convert a => Put a 

data V (n :: Symbol) Source #

Data for declaring variables in a html document which will be compacted.

Constructors

V 

Orphan instances

Document (a := b) => Show (a := b) Source #

Show instances to faciliate ghci development.

Instance details

Methods

showsPrec :: Int -> (a := b) -> ShowS #

show :: (a := b) -> String #

showList :: [a := b] -> ShowS #

Document (a :@ b) => Show (a :@ b) Source # 
Instance details

Methods

showsPrec :: Int -> (a :@ b) -> ShowS #

show :: (a :@ b) -> String #

showList :: [a :@ b] -> ShowS #

Document (a :> b) => Show (a :> b) Source # 
Instance details

Methods

showsPrec :: Int -> (a :> b) -> ShowS #

show :: (a :> b) -> String #

showList :: [a :> b] -> ShowS #

Document (a # b) => Show (a # b) Source # 
Instance details

Methods

showsPrec :: Int -> (a # b) -> ShowS #

show :: (a # b) -> String #

showList :: [a # b] -> ShowS #

Document (Attribute a global boolean) => Show (Attribute a global boolean) Source # 
Instance details

Methods

showsPrec :: Int -> Attribute a global boolean -> ShowS #

show :: Attribute a global boolean -> String #

showList :: [Attribute a global boolean] -> ShowS #

Document (Element name categories contentModel contentAttributes) => Show (Element name categories contentModel contentAttributes) Source # 
Instance details

Methods

showsPrec :: Int -> Element name categories contentModel contentAttributes -> ShowS #

show :: Element name categories contentModel contentAttributes -> String #

showList :: [Element name categories contentModel contentAttributes] -> ShowS #