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

Safe HaskellNone

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, a `IsChildOf` 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

IsChildOf b a => IsChildOf b (Div a) 
IsBlock a => IsBlock (Div a) 
IsBlockOrInline a => IsBlockOrInline (Div a) 
IsNode a => IsNode (Div a) 
~ * a Section => IsChildOf (Div a) Section 
~ * a Document => IsChildOf (Div a) Document 
~ * Form a => IsChildOf (Div a) Form 

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, a `IsChildOf` Span, ToTDoc b t a) => b -> Star t SubsectionSource

class SectionTag t whereSource

Methods

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

Instances

section :: forall a b t. (SectionTag t, a `IsChildOf` 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