fixed support for Env
authorSimon Huber <hubsim@gmail.com>
Thu, 19 Mar 2015 09:35:55 +0000 (10:35 +0100)
committerSimon Huber <hubsim@gmail.com>
Thu, 19 Mar 2015 09:35:55 +0000 (10:35 +0100)
Eval.hs

diff --git a/Eval.hs b/Eval.hs
index 7be6d0013c245602ccbce322f457a267f8268c8e..6d387d1e596b1d3dfb10d8e48869575aaa9a99e3 100644 (file)
--- a/Eval.hs
+++ b/Eval.hs
@@ -36,7 +36,11 @@ lookName i (Sub rho (j,phi)) | i == j    = phi
 -- Nominal instances
 
 instance Nominal Env where
-  support    = support . formulaOfEnv
+  support Empty             = []
+  support (Pair rho (_,u))  = support u `union` support rho
+  support (Sub rho (_,phi)) = support phi `union` support rho
+  support (Def _ rho)       = support rho
+
   act e iphi = mapEnv (`act` iphi) (`act` iphi) e
   swap e ij  = mapEnv (`swap` ij) (`swap` ij) e