definition:
|
printMainPage :: [(String, [(String,String)] -> IO ())] -> IO HtmlPage -> IO ()
printMainPage formmap genpage = catchFormErrors $ do
cgivars <- getFormVariables
maybe (genpage >>= execPage >>= printPage)
(\formid -> maybe (printPage (formNotCompiledPage formid))
(\f -> f cgivars)
(lookup formid formmap))
(lookup "FORMID" cgivars)
|
demand:
|
no demanded arguments
|
deterministic:
|
deterministic operation
|
documentation:
|
------------------------------------------------------------------------------
--- Shows the HTML page generated from the second parameter
--- as a string on stdout.
--- The forms possibly contained in the HTML page are passed as parameters,
--- where the elements are usually of the form
--- `(formid, execFormDef formdef)`.
--- This operation is used by the script `curry2gi` to compile web scripts
--- into executables.
|
failfree:
|
<FAILING>
|
indeterministic:
|
referentially transparent operation
|
infix:
|
no fixity defined
|
iotype:
|
{(_,_) |-> _}
|
name:
|
printMainPage
|
precedence:
|
no precedence defined
|
result-values:
|
_
|
signature:
|
[(String, [(String, String)] -> Prelude.IO ())] -> Prelude.IO HTML.Base.HtmlPage
-> Prelude.IO ()
|
solution-complete:
|
operation might suspend on free variables
|
terminating:
|
possibly non-terminating
|
totally-defined:
|
possibly non-reducible on same data term
|