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

Safe HaskellNone
LanguageHaskell2010

Html

Contents

Synopsis

Documentation

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.

type family Document a where ... Source #

Constraint for html documents. It's a type family to avoid an error about FlexibleContexts and a warning about MonoLocalBinds.

Equations

Document a = Document' a 

module Html.Type

Orphan instances

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

Methods

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

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

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

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

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.

Methods

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

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

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