WashNGo-2.12.0.1: WASH is a family of EDSLs for programming Web applications in Haskell.

WASH.HTML.HTMLMonadBase

Synopsis

Documentation

data WithHTML x m a Source

Constructors

WithHTML 

Fields

unWithHTML :: Element -> m (a, Element)
 

Instances

Monad m => Monad (WithHTML x m) 

type HTMLCons x y m a = WithHTML x m a -> WithHTML y m aSource

lift :: Monad m => m a -> WithHTML x m aSource

empty :: Monad m => WithHTML x m ()Source

empty node sequence

comment_S :: Monad m => String -> WithHTML x m ()Source

concatenation of sequences

cleanup of attribute values

text :: Monad m => String -> WithHTML x m ()Source

create a text node with all illegal characters properly escaped

showText :: (Monad m, Show a) => a -> WithHTML x m ()Source

create a text node from any Showable type

rawtext :: Monad m => String -> WithHTML x m ()Source

create a text node where the string is dropped into the webpage without change, e.g., preserving entities

mkEmpty :: Monad m => String -> HTMLCons x y m aSource

data ATTR_ Source

Instances

Show ATTR_

Takes element and attribute. Attaches attribute to the element. Replaces prior attribute with same name.