diff options
Diffstat (limited to 'src/LambdaCube/Compiler/Infer.hs')
-rw-r--r-- | src/LambdaCube/Compiler/Infer.hs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/LambdaCube/Compiler/Infer.hs b/src/LambdaCube/Compiler/Infer.hs index 3eaae43b..444dd1b9 100644 --- a/src/LambdaCube/Compiler/Infer.hs +++ b/src/LambdaCube/Compiler/Infer.hs | |||
@@ -238,6 +238,7 @@ inferN_ tellTrace = infer where | |||
238 | Parens x -> infer te x | 238 | Parens x -> infer te x |
239 | SAnn x t -> checkN (CheckIType x te) t TType | 239 | SAnn x t -> checkN (CheckIType x te) t TType |
240 | SRHS x -> infer (ERHS te) x | 240 | SRHS x -> infer (ERHS te) x |
241 | SLHS n x -> infer te x | ||
241 | SVar sn i -> focusTell te exp $ ET (Var i) $ snd $ varType "C2" i te | 242 | SVar sn i -> focusTell te exp $ ET (Var i) $ snd $ varType "C2" i te |
242 | SLit si l -> focusTell te exp $ ET (ELit l) (nType l) | 243 | SLit si l -> focusTell te exp $ ET (ELit l) (nType l) |
243 | STyped et -> focusTell' te exp et | 244 | STyped et -> focusTell' te exp et |
@@ -268,6 +269,7 @@ inferN_ tellTrace = infer where | |||
268 | = infer te $ x `SAppV` SLamV (SLamV (STyped (subst (n'+2) (Var 1) $ up1_ (n'+3) $ up 2 t, TType))) `SAppV` a `SAppV` b `SAppV` SVar siv v | 269 | = infer te $ x `SAppV` SLamV (SLamV (STyped (subst (n'+2) (Var 1) $ up1_ (n'+3) $ up 2 t, TType))) `SAppV` a `SAppV` b `SAppV` SVar siv v |
269 | -} | 270 | -} |
270 | | SRHS x <- e = checkN (ERHS te) x t | 271 | | SRHS x <- e = checkN (ERHS te) x t |
272 | | SLHS n x <- e = checkN te x t | ||
271 | | SApp_ si h a b <- e = infer (CheckAppType si h t te b) a | 273 | | SApp_ si h a b <- e = infer (CheckAppType si h t te b) a |
272 | | SLam h a b <- e, Pi h' x y <- t, h == h' = do | 274 | | SLam h a b <- e, Pi h' x y <- t, h == h' = do |
273 | -- tellType e t | 275 | -- tellType e t |