on master help sign in
Merge pull request #1672 from ziman/simplify-erasure

Remove dep sets from bound variables

commitca0bcf333a2e1d31dbbc4fb1df7fa7bf95f1768f authorEdwin Brady <edwin.brady@gmail.com> dateSat 25 Oct 2014, 23:03 (12 years ago) parent21e77f37f4c874
1 file changed+2−2
src/Idris/Erasure.hs+2−2
src/Idris/Erasure.hs+2−2
@@ -358,8 +358,8 @@ buildDepMap ci ctx mainName = addPostulates $ dfs S.empty M.empty [mainName]
358358
359359 -- let-bound variables can get partially evaluated
360360 -- it is sufficient just to plug the Cond in when the bound names are used
361− | Let ty t <- bdr = var t cd `union` getDepsTerm vs ((n, var t) : bs) cd body
362− | NLet ty t <- bdr = var t cd `union` getDepsTerm vs ((n, var t) : bs) cd body
361+ | Let ty t <- bdr = var t cd `union` getDepsTerm vs ((n, const M.empty) : bs) cd body
362+ | NLet ty t <- bdr = var t cd `union` getDepsTerm vs ((n, const M.empty) : bs) cd body
363363 where
364364 var t cd = getDepsTerm vs bs cd t
365365