diff options
author | Jed Barber <jjbarber@y7mail.com> | 2012-05-29 07:30:50 +1000 |
---|---|---|
committer | Jed Barber <jjbarber@y7mail.com> | 2012-05-29 07:30:50 +1000 |
commit | 5faabaf240316300e48cf37eae0d5e2bfd0ec66c (patch) | |
tree | 1543c8119a0a7be4cc2f1751a755fb16b67fe8aa /Term.hs | |
parent | f8261525ddb9efe70eef21d3fc45003f431826e7 (diff) |
All potential errors now caught into Nothings
Diffstat (limited to 'Term.hs')
-rw-r--r-- | Term.hs | 9 |
1 files changed, 1 insertions, 8 deletions
@@ -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 -> |