X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=c%CE%BBash%2FCLasH%2FNormalize.hs;h=2c7a95e16b99b25987f13d8de875f498ae780ef0;hb=a97a53c406ca4da95059a95a4f3d6452eb87b018;hp=4f02800547b729e7cc405c5d4990c366c284b4cb;hpb=b79c61e1dd119d18a0d00a05127c785c143281e1;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 4f02800..2c7a95e 100644 --- "a/c\316\273ash/CLasH/Normalize.hs" +++ "b/c\316\273ash/CLasH/Normalize.hs" @@ -419,6 +419,8 @@ scrutbndrremove (Case (Var scrut) bndr ty alts) | bndr_used = do expr' <- substitute bndr (Var scrut) expr return (con, bndrs, expr') wild = MkCore.mkWildBinder (Id.idType bndr) +-- Leave all other expressions unchanged +scrutbndrremove expr = return expr scrutbndrremovetop = everywhere ("scrutbndrremove", scrutbndrremove) --------------------------------