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

Safe HaskellNone
LanguageHaskell98

Text.TDoc.Tags

Synopsis

Documentation

class LeafTag t where Source

Methods

leafTag :: t Leaf Source

newtype Url Source

Constructors

Url 

Fields

fromUrl :: String
 

class LeafTags t where Source

Methods

charTag :: Char -> t Leaf Source

stringTag :: String -> t Leaf Source

strictByteStringTag :: ByteString -> t Leaf Source

lazyByteStringTag :: ByteString -> t Leaf Source

Instances

strictByteString :: LeafTags t => ByteString -> TDoc t Leaf Source

lazyByteString :: LeafTags t => ByteString -> TDoc t Leaf Source

class TitleTag t where Source

Methods

titleTag :: t Title Source

Instances

class BrTag t where Source

Methods

brTag :: t Br Source

Instances

class HrTag t where Source

Methods

hrTag :: t Hr Source

Instances

class ColTag t where Source

Methods

colTag :: t Col Source

Instances

class HColTag t where Source

Methods

hColTag :: t HCol Source

Instances

class RowTag t where Source

Methods

rowTag :: t Row Source

Instances

class TableTag t where Source

Methods

tableTag :: t Table Source

Instances

class ItemTag t where Source

Methods

itemTag :: t Item Source

Instances

class UListTag t where Source

Methods

uListTag :: t UList Source

Instances

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

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 where Source

Methods

spanTag :: t Span Source

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 where Source

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 Subsection Source

class SectionTag t where Source

Methods

sectionTag :: a `IsChildOf` Span => TDoc t a -> t Section Source

Instances

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

class HLinkTag t where Source

Methods

hLinkTag :: Url -> t HLink Source

Instances

class AnchorTag t where Source

Methods

anchorTag :: t Anchor Source

Instances

class ImageTag t where Source

Methods

imageTag :: t Image Source

Instances

class DocumentTag t where Source

Instances

class RootTag t where Source

Methods

rootTag :: t Root Source

Instances

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