| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
L3.Core.Normal
Description
Type checking and type inference
Documentation
free :: (Eq a, Show a) => a -> Expr a -> Bool Source #
Is a name free in an expression
In this context, free v a & v = v' => substitute v v' a = a
i.e. would a substitution be performed
substitute :: (Eq a, Enum a, Show a) => a -> Expr a -> Expr a -> Expr a Source #
Substitute all occurrences of a variable v with an expression e. substitute v e E ~ E[v := e]