definition:
|
lookupProg :: ModuleName -> VStateM TAProg
lookupProg modname = do
vst <- get
case find (\p -> progName p == modname) (currTAProgs vst) of
Nothing -> error $ "Missing program " ++ modname
Just p -> return p
|
demand:
|
no demanded arguments
|
deterministic:
|
deterministic operation
|
documentation:
|
--- Looks up a program from a module name
|
failfree:
|
_
|
indeterministic:
|
referentially transparent operation
|
infix:
|
no fixity defined
|
iotype:
|
{(_) |-> _}
|
name:
|
lookupProg
|
precedence:
|
no precedence defined
|
result-values:
|
_
|
signature:
|
String
-> Control.Monad.Trans.State.StateT VState Prelude.IO (FlatCurry.Annotated.Types.AProg FlatCurry.Types.TypeExpr)
|
solution-complete:
|
operation might suspend on free variables
|
terminating:
|
possibly non-terminating
|
totally-defined:
|
reducible on all ground data terms
|