|
definition: |
tdeclOf :: VState -> QName -> Maybe TypeDecl
tdeclOf vst tcons@(mn,_) =
maybe Nothing
(\p -> find (\td -> typeName td == tcons) (progTypes p))
(find (\p -> progName p == mn) (currTAProgs vst))
|
|
demand: |
argument 2 |
|
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: |
VState -> (String, String) -> 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 |