|
definition: |
controllerFunction :: String -> String -> String -> Int -> CTypeExpr -> [CRule]
-> CFuncDecl
controllerFunction description entityName controllerType arity functionType
rules =
stCmtFunc description
(controllerFunctionName entityName controllerType)
arity
(if controllerType `elem` ["main"]
then Public
else Private)
functionType rules
|
|
demand: |
no demanded arguments |
|
deterministic: |
deterministic operation |
|
documentation: |
entityName: Name of entity the controller should be generated for controllerType: the function of the generated Controller, e.g. "new", "edit", "list" arity functionType: the type of the controller function rules: the rules defining the controller |
|
failfree: |
(_, _, _, _, _, _) |
|
indeterministic: |
referentially transparent operation |
|
infix: |
no fixity defined |
|
iotype: |
{(_,_,_,_,_,_) |-> _}
|
|
name: |
controllerFunction |
|
precedence: |
no precedence defined |
|
result-values: |
_ |
|
signature: |
String -> String -> String -> Prelude.Int -> AbstractCurry.Types.CTypeExpr -> [AbstractCurry.Types.CRule] -> AbstractCurry.Types.CFuncDecl |
|
solution-complete: |
operation might suspend on free variables |
|
terminating: |
possibly non-terminating |
|
totally-defined: |
reducible on all ground data terms |