Contents
Index
CGIMonad
Description
Definition of the monad underlying the CGI library.
Synopsis
newtype
CGI
a =
CGI
{
unCGI
:: (
CGIAction
a)
}
type
CGIAction
a =
CGIState
-> IO (a,
CGIState
)
data
CGIState
=
CGIState
{
inparm
:: [
PARAMETER
]
outparm
:: [
PARAMETER
]
mcount
:: Int
cgiInfo
::
CGIInfo
pageInfo
::
PageInfo
encoder
:: (String -> String)
cookieMap
:: [(String, (Maybe String, Maybe String))]
cookiesToSend
:: [String]
}
data
PageInfo
=
PageInfo
{
count
:: Int
nextaction
:: (
Element
->
CGIAction
())
actionTable
:: [(String,
Element
->
CGIAction
())]
bindings
:: (Maybe
CGIParameters
)
enctype
:: String
inFrame
:: Int
allFields
:: [(String, Bool)]
faultyfields
:: [(String, String)]
}
data
CGIFieldName
=
CGIFieldName
{
fnMcount
:: Int
fnCount
:: Int
}
setAction
:: (
Element
->
CGI
()) ->
CGI
()
registerAction
:: String -> (
Element
->
CGI
()) ->
CGI
()
incFrame
::
CGI
Int
resetFrame
::
CGI
()
setEnctype
:: String ->
CGI
()
setFaulty
:: [(String, String)] ->
CGI
()
data
PARAMETER
=
PAR_RESULT
String
|
PAR_VALUES
CGIParameters
|
PAR_MARK
|
PAR_IGNORED
nextName
::
CGI
CGIFieldName
addField
:: String -> Bool ->
CGI
()
Produced by
Haddock
version 0.6