-- Data types for λ terms.
-module Lambda.Term where
+module Lambda.Term
+ ( -- * Types
+ VarName
+ , Term(..)
+ -- * Pattern synonyms
+ , pattern RedEx
+ , pattern AppApp
+ , pattern EmLambda
+ ) where
type VarName = String
pattern RedEx x t s = App (Lambda x t) s
pattern AppApp a b c = App a (App b c)
pattern EmLambda x y t = Lambda x (Lambda y t)
-
-