diff options
Diffstat (limited to 'src/LambdaCube/Compiler/Infer.hs')
-rw-r--r-- | src/LambdaCube/Compiler/Infer.hs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/LambdaCube/Compiler/Infer.hs b/src/LambdaCube/Compiler/Infer.hs index eb7f3681..35146c86 100644 --- a/src/LambdaCube/Compiler/Infer.hs +++ b/src/LambdaCube/Compiler/Infer.hs | |||
@@ -246,8 +246,10 @@ pattern LabelEnd x = LabelEnd_ LEPM x | |||
246 | 246 | ||
247 | label LabelFix x y = FixLabel x y | 247 | label LabelFix x y = FixLabel x y |
248 | pmLabel :: FunName -> Int -> [Exp] -> Exp -> Exp | 248 | pmLabel :: FunName -> Int -> [Exp] -> Exp -> Exp |
249 | pmLabel _ _ _ (unlabel -> LabelEnd y) = y | 249 | pmLabel _ _ _ (unlabel'' -> LabelEnd y) = y |
250 | pmLabel f i xs y = PMLabel f i xs y | 250 | pmLabel f i xs y@Neut{} = PMLabel f i xs y |
251 | pmLabel f i xs y@Lam{} = PMLabel f i xs y | ||
252 | --pmLabel f i xs y = trace_ (ppShow y) $ PMLabel f i xs y | ||
251 | 253 | ||
252 | pattern UL a <- (unlabel -> a) where UL = unlabel | 254 | pattern UL a <- (unlabel -> a) where UL = unlabel |
253 | 255 | ||
@@ -659,7 +661,6 @@ app_ (Con s n xs) a = if n < conParams s then Con s (n+1) xs else Con s n (xs ++ | |||
659 | app_ (TyCon s xs) a = TyCon s (xs ++ [a]) | 661 | app_ (TyCon s xs) a = TyCon s (xs ++ [a]) |
660 | app_ (Label lk x e) a = label lk (app_ x a) $ app_ e a | 662 | app_ (Label lk x e) a = label lk (app_ x a) $ app_ e a |
661 | app_ (LabelEnd_ k x) a = LabelEnd_ k (app_ x a) -- ??? | 663 | app_ (LabelEnd_ k x) a = LabelEnd_ k (app_ x a) -- ??? |
662 | --app_ (PMLabel x e) a = pmLabel (neutApp x a) $ app_ e a | ||
663 | app_ (Neut f) a = neutApp f a | 664 | app_ (Neut f) a = neutApp f a |
664 | 665 | ||
665 | neutApp (PMLabel_ f i xs e) a | 666 | neutApp (PMLabel_ f i xs e) a |