definition:
|
tVarIndex :: TypeExpr -> TVarIndex
tVarIndex texpr = case texpr of
(TVar n) -> n
_ -> error "AnnotatedFlatCurryGoodies.tVarIndex: no type variable"
|
demand:
|
argument 1
|
deterministic:
|
deterministic operation
|
documentation:
|
--- get index from type variable
|
failfree:
|
_
|
indeterministic:
|
referentially transparent operation
|
infix:
|
no fixity defined
|
iotype:
|
{({TVar}) |-> _ || ({FuncType}) |-> _ || ({TCons}) |-> _ || ({ForallType}) |-> _}
|
name:
|
tVarIndex
|
precedence:
|
no precedence defined
|
result-values:
|
_
|
signature:
|
FlatCurry.Types.TypeExpr -> Prelude.Int
|
solution-complete:
|
operation might suspend on free variables
|
terminating:
|
yes
|
totally-defined:
|
reducible on all ground data terms
|