summaryrefslogtreecommitdiff
path: root/prototypes/Infer.hs
diff options
context:
space:
mode:
Diffstat (limited to 'prototypes/Infer.hs')
-rw-r--r--prototypes/Infer.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/prototypes/Infer.hs b/prototypes/Infer.hs
index 29271736..bde765cc 100644
--- a/prototypes/Infer.hs
+++ b/prototypes/Infer.hs
@@ -1839,7 +1839,7 @@ getTTuple _ = Nothing
1839 1839
1840mkLets :: GlobalEnv' -> [Stmt]{-where block-} -> SExp{-main expression-} -> SExp{-big let with lambdas; replaces global names with de bruijn indices-} 1840mkLets :: GlobalEnv' -> [Stmt]{-where block-} -> SExp{-main expression-} -> SExp{-big let with lambdas; replaces global names with de bruijn indices-}
1841mkLets _ [] e = e 1841mkLets _ [] e = e
1842mkLets ge (Let n _ Nothing (downS 0 -> Just x): ds) e = SLet x (substSG n (SVar 0) $ upS $ mkLets ge ds e) 1842mkLets ge (Let n _ mt (downS 0 -> Just x): ds) e = SLet ({-maybe id (flip SAnn . af) mt-}{-todo-} x) (substSG n (SVar 0) $ upS $ mkLets ge ds e)
1843mkLets ge (ValueDef (ns, p) x: ds) e = patLam ge p (deBruinify ns $ mkLets ge ds e) `SAppV` x -- (p = e; f) --> (\p -> f) e 1843mkLets ge (ValueDef (ns, p) x: ds) e = patLam ge p (deBruinify ns $ mkLets ge ds e) `SAppV` x -- (p = e; f) --> (\p -> f) e
1844mkLets _ (x: ds) e = error $ "mkLets: " ++ show x 1844mkLets _ (x: ds) e = error $ "mkLets: " ++ show x
1845 1845