diff options
Diffstat (limited to 'src/LambdaCube/Compiler/Infer.hs')
-rw-r--r-- | src/LambdaCube/Compiler/Infer.hs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/LambdaCube/Compiler/Infer.hs b/src/LambdaCube/Compiler/Infer.hs index 5067487c..f2889dd0 100644 --- a/src/LambdaCube/Compiler/Infer.hs +++ b/src/LambdaCube/Compiler/Infer.hs | |||
@@ -83,8 +83,8 @@ showEnvSExpType e c t = show $ envDoc e $ underline $ (shAnn (pShow c) (pShow t) | |||
83 | envDoc :: Env -> Doc -> Doc | 83 | envDoc :: Env -> Doc -> Doc |
84 | envDoc x m = case x of | 84 | envDoc x m = case x of |
85 | EGlobal{} -> m | 85 | EGlobal{} -> m |
86 | EBind1 _ h ts b -> envDoc ts $ shLam (usedVar 0 b) h m (pShow b) | 86 | EBind1 _ h ts b -> envDoc ts $ shLam (usedVar' 0 b "") h m (pShow b) |
87 | EBind2 h a ts -> envDoc ts $ shLam True h (pShow a) m | 87 | EBind2 h a ts -> envDoc ts $ shLam (Just "") h (pShow a) m |
88 | EApp1 _ h ts b -> envDoc ts $ shApp h m (pShow b) | 88 | EApp1 _ h ts b -> envDoc ts $ shApp h m (pShow b) |
89 | EApp2 _ h (ET (Lam (Var 0)) (Pi Visible TType _)) ts -> envDoc ts $ shApp h (text "tyType") m | 89 | EApp2 _ h (ET (Lam (Var 0)) (Pi Visible TType _)) ts -> envDoc ts $ shApp h (text "tyType") m |
90 | EApp2 _ h a ts -> envDoc ts $ shApp h (pShow a) m | 90 | EApp2 _ h a ts -> envDoc ts $ shApp h (pShow a) m |
@@ -102,7 +102,7 @@ envDoc x m = case x of | |||
102 | instance MkDoc a => MkDoc (CEnv a) where | 102 | instance MkDoc a => MkDoc (CEnv a) where |
103 | mkDoc pr = \case | 103 | mkDoc pr = \case |
104 | MEnd a -> mkDoc pr a | 104 | MEnd a -> mkDoc pr a |
105 | Meta a b -> shLam True BMeta (mkDoc pr a) (mkDoc pr b) | 105 | Meta a b -> shLam (Just "") BMeta (mkDoc pr a) (mkDoc pr b) |
106 | Assign i (ET x _) e -> shLet i (mkDoc pr x) (mkDoc pr e) | 106 | Assign i (ET x _) e -> shLet i (mkDoc pr x) (mkDoc pr e) |
107 | 107 | ||
108 | -------------------------------------------------------------------------------- constraints env | 108 | -------------------------------------------------------------------------------- constraints env |