aboutsummaryrefslogtreecommitdiff
path: root/Term.hs
diff options
context:
space:
mode:
authorJed Barber <jjbarber@y7mail.com>2012-05-29 07:30:50 +1000
committerJed Barber <jjbarber@y7mail.com>2012-05-29 07:30:50 +1000
commit5faabaf240316300e48cf37eae0d5e2bfd0ec66c (patch)
tree1543c8119a0a7be4cc2f1751a755fb16b67fe8aa /Term.hs
parentf8261525ddb9efe70eef21d3fc45003f431826e7 (diff)
All potential errors now caught into Nothings
Diffstat (limited to 'Term.hs')
-rw-r--r--Term.hs9
1 files changed, 1 insertions, 8 deletions
diff --git a/Term.hs b/Term.hs
index 23fc5c5..dfcf1cf 100644
--- a/Term.hs
+++ b/Term.hs
@@ -2,8 +2,6 @@ module Term (
Term(..),
Substitution,
- nullTerm,
-
alphaEquiv,
alphaConvert,
alphaConvertList,
@@ -34,8 +32,7 @@ data Term = TVar { tVar :: Var }
| TApp { tAppLeft :: Term
, tAppRight :: Term }
| TAbs { tAbsVar :: Term
- , tAbsTerm :: Term }
- | TNull deriving (Ord)
+ , tAbsTerm :: Term } deriving (Ord)
type Substitution = ( [(Name,Type)], [(Var,Term)] )
@@ -54,10 +51,6 @@ instance Eq Term where
-nullTerm :: Term
-nullTerm = TNull
-
-
alphaEquiv :: Term -> Term -> Bool
alphaEquiv a b =
let equiv = \term1 term2 varmap1 varmap2 depth ->