summaryrefslogtreecommitdiff
path: root/src/LambdaCube/Compiler/DeBruijn.hs
diff options
context:
space:
mode:
authorPéter Diviánszky <divipp@gmail.com>2016-05-04 08:39:23 +0200
committerPéter Diviánszky <divipp@gmail.com>2016-05-04 08:39:23 +0200
commit4425f4c90361927a7a1b839e69b89d56d9b77e8a (patch)
tree4c59501509aa6e083e2a88f023c8e6b8697944e5 /src/LambdaCube/Compiler/DeBruijn.hs
parente23ea133eb598e822183b44fe97ea0f6bdc4d4c9 (diff)
refactoring
Diffstat (limited to 'src/LambdaCube/Compiler/DeBruijn.hs')
-rw-r--r--src/LambdaCube/Compiler/DeBruijn.hs4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/LambdaCube/Compiler/DeBruijn.hs b/src/LambdaCube/Compiler/DeBruijn.hs
index 83e81188..2bc6cfdd 100644
--- a/src/LambdaCube/Compiler/DeBruijn.hs
+++ b/src/LambdaCube/Compiler/DeBruijn.hs
@@ -53,10 +53,6 @@ class Up{-TODO: rename-} a where
53 usedVar :: Int -> a -> Bool 53 usedVar :: Int -> a -> Bool
54 usedVar = (getAny .) . foldVar ((Any .) . (==)) 54 usedVar = (getAny .) . foldVar ((Any .) . (==))
55 55
56instance (Up a, Up b) => Up (a, b) where
57 usedVar i (a, b) = usedVar i a || usedVar i b
58 foldVar f i (a, b) = foldVar f i a <> foldVar f i b
59
60instance Up Void where 56instance Up Void where
61 foldVar _ _ = elimVoid 57 foldVar _ _ = elimVoid
62 58