CurryInfo: verify-non-fail-2.0.0 / Verify.NonFailConditions.expandExpr

definition: Info
 
expandExpr :: [(Int,TypeExpr,Expr)] -> Expr -> Expr
expandExpr bs = updVars updvar
 where
  updvar v = maybe (Var v)
                   (\(_,_,e) -> if e == Var v then e else expandExpr bs e)
                   (find (\(v',_,_) -> v' == v) bs)
demand: Info
 no demanded arguments
deterministic: Info
 deterministic operation
documentation: Info
 
---------------------------------------------------------------------------
Replace all variables in a FlatCurry expression by their bindings
passed as a mapping from variables to expressions.
failfree: Info
 _
indeterministic: Info
 referentially transparent operation
infix: Info
 no fixity defined
iotype: Info
 {(_) |-> {trExpr}}
name: Info
 expandExpr
precedence: Info
 no precedence defined
result-values: Info
 {trExpr}
signature: Info
 [(Prelude.Int, FlatCurry.Types.TypeExpr, FlatCurry.Types.Expr)]
-> FlatCurry.Types.Expr -> FlatCurry.Types.Expr
solution-complete: Info
 operation might suspend on free variables
terminating: Info
 possibly non-terminating
totally-defined: Info
 reducible on all ground data terms