type-of-html-1.5.0.0: High performance type driven html generation.

Safe HaskellNone
LanguageHaskell2010

Html

Contents

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

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 # 
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) c) => Show ((a :@: b) c) Source #

Show instances to faciliate ghci development.

Instance details

Methods

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

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

showList :: [(a :@: b) c] -> ShowS #