xhtml-combinators-0.3: Fast and easy to use XHTML combinators.

PortabilityGHC
Stabilityexperimental
Maintaineralasdair.armstrong@googlemail.com

Text.XHtmlCombinators.Internal

Description

 

Documentation

newtype XHtmlMT x t a Source

Constructors

XHtmlMT 

Fields

unXHtmlMT :: WriterT (Seq x) t a
 

Instances

MonadTrans (XHtmlMT x) 
Monad t => Monad (XHtmlMT x t) 
Functor t => Functor (XHtmlMT x t) 
(Functor t, Monad t) => Applicative (XHtmlMT x t) 

tellS :: Monad t => x -> XHtmlMT x t ()Source

execXHtmlMT :: Monad t => XHtmlMT x t () -> t (Seq x)Source

type XHtmlT t x = XHtmlMT x t ()Source

type Attrs = [Attr]Source

data Attr Source

Constructors

Attr Text Text 

Instances

data Node Source

Instances

text :: (Functor t, Monad t, CData c) => Text -> XHtmlT t cSource

newtype Root Source

Constructors

Root 

Fields

rootToNode :: Node
 

Instances

node :: (Functor t, Monad t, Content e) => Text -> Attrs -> Attrs -> XHtmlT t e -> t NodeSource

tellTextNode :: Monad t => (Node -> e) -> Text -> Attrs -> Attrs -> Text -> XHtmlT t eSource

tellEmptyNode :: Monad t => (Node -> e) -> Text -> Attrs -> Attrs -> XHtmlT t eSource

tellNode :: (Functor t, Monad t, Content a) => (Node -> b) -> Text -> Attrs -> Attrs -> XHtmlT t a -> XHtmlT t bSource

first :: Seq a -> aSource