Add LambdaBody to CoreContext.
[matthijs/master-project/cλash.git] / cλash / CLasH / Normalize / NormalizeTypes.hs
index e412e96a791635ed33d747e8e7333adffe175b50..80d39ac19ce10dbfccb75af33057a49e24f0c9a1 100644 (file)
@@ -26,7 +26,8 @@ data CoreContext = AppFirst        -- ^ The expression is the first
                                    --   expression.
                  | LetBody         -- ^ The expression is the body of a
                                    --   let expression
+                 | LambdaBody      -- ^ The expression is the body of a
+                                   --   lambda abstraction
                  | Other           -- ^ Another context
-
 -- | Transforms a CoreExpr and keeps track if it has changed.
 type Transform = [CoreContext] -> CoreSyn.CoreExpr -> TransformMonad CoreSyn.CoreExpr