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

Safe HaskellSafe-Infered

WASH.HTML.HTMLTemplates

Synopsis

Documentation

data ST s a Source

Constructors

ST 

Fields

unST :: s -> (a, s)
 

Instances

Monad (ST s) 

runST :: s -> ST s a -> aSource

setST :: s -> ST s ()Source

data Names Source

Constructors

Names 

Fields

ntable :: [(String, Int)]
 
nseen :: [Int]
 

showDefinitions :: Int -> [(String, (t, Int, [TemplateItem]))] -> String -> StringSource

showsIdent :: Int -> ShowSSource

charlist :: [Char]Source

identlist :: [[Char]]Source

showBody :: [TemplateItem] -> String -> StringSource

showFormals :: Int -> String -> StringSource

showActualArgs :: [Template] -> ST Names (String -> String)Source

showActualArg :: Template -> ST Names (String -> String)Source

showStringTable :: [(String, Int)] -> String -> StringSource

cleanupStringTable :: (Enum b, Num b, Num a1, Ord a1) => b -> [([a], a1)] -> [([a], b)]Source

unite :: (Eq a, Num t) => [(a, t)] -> [(a, t)] -> [(a, t)]Source

buildStringTableArgs :: [Template] -> [(String, Integer)]Source

buildStringTableArg :: [TemplateItem] -> [(String, Integer)]Source

buildStringTableActual :: TemplateItem -> [(String, Integer)]Source

data Mt Source

Constructors

Mt 

Fields

open :: Templates
 
closed :: [(String, (Int, Int, Template))]
 
dynamics :: [Templates]
 
actuals :: Templates
 
count :: Int
 

Instances

Show Mt 

data TemplateItem Source

Constructors

TOut String 
TVar Int 
TCall Int [Template] 

Instances

data M a Source

Constructors

M 

Fields

unM :: Mt -> (a, Mt)
 

Instances

Monad M 

get :: (Mt -> x) -> M xSource

collect :: ELEMENT_ -> BT -> Template -> M TemplateSource

collect takes an element, a list of open templates, a list of finished templates, and returns a pair (open templates, finished templates).