definition:
|
tdeclOf :: QName -> VStateM (Maybe TypeDecl)
tdeclOf tcons@(mn,_) = do
vst <- get
return $ maybe Nothing
(\p -> find (\td -> typeName td == tcons) (progTypes p))
(find (\p -> progName p == mn) (currTAProgs vst))
|
demand:
|
argument 1
|
deterministic:
|
deterministic operation
|
documentation:
|
---------------------------------------------------------------------------
--- Selects the type declaration of a type constructor from the state.
|
failfree:
|
_
|
indeterministic:
|
referentially transparent operation
|
infix:
|
no fixity defined
|
iotype:
|
{({(,)}) |-> _}
|
name:
|
tdeclOf
|
precedence:
|
no precedence defined
|
result-values:
|
_
|
signature:
|
(String, String)
-> Control.Monad.Trans.State.StateT VState Prelude.IO (Prelude.Maybe FlatCurry.Types.TypeDecl)
|
solution-complete:
|
operation might suspend on free variables
|
terminating:
|
possibly non-terminating
|
totally-defined:
|
reducible on all ground data terms
|