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

Safe HaskellNone
LanguageHaskell98

Text.TDoc.Tags

Contents

Synopsis

Documentation

class LeafTag t where Source #

Minimal complete definition

leafTag

Methods

leafTag :: t Leaf Source #

newtype Url Source #

Constructors

Url 

Fields

class ParagraphTag t where Source #

Minimal complete definition

paragraphTag

class TitleTag t where Source #

Minimal complete definition

titleTag

Methods

titleTag :: t Title Source #

class BrTag t where Source #

Minimal complete definition

brTag

Methods

brTag :: t Br Source #

Instances

class HrTag t where Source #

Minimal complete definition

hrTag

Methods

hrTag :: t Hr Source #

Instances

class ColTag t where Source #

Minimal complete definition

colTag

Methods

colTag :: t Col Source #

Instances

class HColTag t where Source #

Minimal complete definition

hColTag

Methods

hColTag :: t HCol Source #

class RowTag t where Source #

Minimal complete definition

rowTag

Methods

rowTag :: t Row Source #

Instances

class TableTag t where Source #

Minimal complete definition

tableTag

Methods

tableTag :: t Table Source #

class ItemTag t where Source #

Minimal complete definition

itemTag

Methods

itemTag :: t Item Source #

class UListTag t where Source #

Minimal complete definition

uListTag

Methods

uListTag :: t UList Source #

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 #

Minimal complete definition

spanTag

Methods

spanTag :: t Span Source #

data Div a Source #

Instances

class DivTag t where Source #

Minimal complete definition

divTag

Methods

divTag :: t (Div a) Source #

Instances

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

class SubsectionTag t where Source #

Minimal complete definition

subsectionTag

subsection :: forall a b t. (SubsectionTag t, a `IsChildOf` Span, ToTDoc b t a) => b -> Star t Subsection Source #

class SectionTag t where Source #

Minimal complete definition

sectionTag

Methods

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

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

class HLinkTag t where Source #

Minimal complete definition

hLinkTag

Methods

hLinkTag :: Url -> t HLink Source #

class AnchorTag t where Source #

Minimal complete definition

anchorTag

Methods

anchorTag :: t Anchor Source #

class ImageTag t where Source #

Minimal complete definition

imageTag

Methods

imageTag :: t Image Source #

class PreambuleTag t where Source #

Minimal complete definition

preambuleTag

class DocumentTag t where Source #

Minimal complete definition

documentTag

class RootTag t where Source #

Minimal complete definition

rootTag

Methods

rootTag :: t Root Source #

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

Orphan instances

(LeafTags t, (~) * a Leaf) => ToTDoc Char t a Source # 

Methods

toTDoc :: Char -> TDoc t a Source #

(LeafTags t, (~) * a Leaf) => ToTDoc ByteString t a Source # 

Methods

toTDoc :: ByteString -> TDoc t a Source #

(LeafTags t, (~) * a Leaf) => ToTDoc ByteString t a Source # 

Methods

toTDoc :: ByteString -> TDoc t a Source #

(LeafTags t, IsChildOf Leaf a) => ToChildren Char t a Source # 

Methods

toChildren :: Char -> [ChildOf t a] Source #

(LeafTags t, IsChildOf Leaf a) => ToChildren ByteString t a Source # 

Methods

toChildren :: ByteString -> [ChildOf t a] Source #

(LeafTags t, IsChildOf Leaf a) => ToChildren ByteString t a Source # 

Methods

toChildren :: ByteString -> [ChildOf t a] Source #

(LeafTags t, (~) * b Char, (~) * a Leaf) => ToTDoc [b] t a Source # 

Methods

toTDoc :: [b] -> TDoc t a Source #