tdoc-0.4.0: TDoc is a typed document builder with support for (X)HTML

Text.TDoc.Tags

Synopsis

Documentation

class LeafTag t whereSource

Methods

leafTag :: t LeafSource

newtype Url Source

Constructors

Url 

Fields

fromUrl :: String
 

class TitleTag t whereSource

Methods

titleTag :: t TitleSource

Instances

class BrTag t whereSource

Methods

brTag :: t BrSource

Instances

class HrTag t whereSource

Methods

hrTag :: t HrSource

Instances

class ColTag t whereSource

Methods

colTag :: t ColSource

Instances

class HColTag t whereSource

Methods

hColTag :: t HColSource

Instances

class RowTag t whereSource

Methods

rowTag :: t RowSource

Instances

class TableTag t whereSource

Methods

tableTag :: t TableSource

Instances

class ItemTag t whereSource

Methods

itemTag :: t ItemSource

Instances

class UListTag t whereSource

Methods

uListTag :: t UListSource

Instances

ulistQ :: (UListTag t, ItemTag t, IsChildOf a Item) => [TDoc t a] -> TDoc t UListSource

ulistQ is a quick version of ulist when all children of a UList are homogeneous one can factor the building of the Item nodes.

class ClassAttrTag t => SpanTag t whereSource

Methods

spanTag :: t SpanSource

Instances

data Div a Source

Instances

class DivTag t whereSource

Methods

divTag :: t (Div a)Source

Instances

div :: DivTag t => Star t (Div a)Source

subsection :: forall a b t. (SubsectionTag t, IsChildOf a Span, ToTDoc b t a) => b -> Star t SubsectionSource

class SectionTag t whereSource

Methods

sectionTag :: IsChildOf a Span => TDoc t a -> t SectionSource

Instances

section :: forall a b t. (SectionTag t, IsChildOf a Span, ToTDoc b t a) => b -> Star t SectionSource

class HLinkTag t whereSource

Methods

hLinkTag :: Url -> t HLinkSource

Instances

class AnchorTag t whereSource

Instances

class ImageTag t whereSource

Methods

imageTag :: t ImageSource

Instances

class RootTag t whereSource

Methods

rootTag :: t RootSource

Instances

root :: forall t doc preambule. (RootTag t, ToTDoc preambule t Preambule, ToTDoc doc t Document) => preambule -> doc -> TDoc t RootSource