X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=c%CE%BBash%2FCLasH%2FNormalize.hs;h=4ef112b605e762c16186f12951123a37574e060d;hb=5eb86d4e07de5c2a31e0862314d100f72bfaa46e;hp=1f0509da5a2ee674aae1117c9150615794152638;hpb=9b378bd9c8ea179ce0459fef9b362002f90dbc98;p=matthijs%2Fmaster-project%2Fc%CE%BBash.git diff --git "a/c\316\273ash/CLasH/Normalize.hs" "b/c\316\273ash/CLasH/Normalize.hs" index 1f0509d..4ef112b 100644 --- "a/c\316\273ash/CLasH/Normalize.hs" +++ "b/c\316\273ash/CLasH/Normalize.hs" @@ -65,7 +65,7 @@ etatop = notappargs ("eta", eta) -------------------------------- beta, betatop :: Transform -- Substitute arg for x in expr -beta (App (Lam x expr) arg) = change $ substitute [(x, arg)] expr +beta (App (Lam x expr) arg) = setChanged >> substitute x arg expr -- Propagate the application into the let beta (App (Let binds expr) arg) = change $ Let binds (App expr arg) -- Propagate the application into each of the alternatives