From: Matthijs Kooijman Date: Tue, 23 Jun 2009 13:45:02 +0000 (+0200) Subject: Make subeverywhere support NonRec Lets. X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;ds=inline;h=606922724499463248f49b7ea7c5925eacbd0b4b;p=matthijs%2Fmaster-project%2Fc%CE%BBash.git Make subeverywhere support NonRec Lets. --- diff --git a/NormalizeTools.hs b/NormalizeTools.hs index 8e57ba8..f016cfa 100644 --- a/NormalizeTools.hs +++ b/NormalizeTools.hs @@ -119,6 +119,11 @@ subeverywhere trans (App a b) = do b' <- trans b return $ App a' b' +subeverywhere trans (Let (NonRec b bexpr) expr) = do + bexpr' <- trans bexpr + expr' <- trans expr + return $ Let (NonRec b bexpr') expr' + subeverywhere trans (Let (Rec binds) expr) = do expr' <- trans expr binds' <- mapM transbind binds