diff options
Diffstat (limited to 'prototypes/Infer.hs')
-rw-r--r-- | prototypes/Infer.hs | 2 |
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 | ||
1840 | mkLets :: GlobalEnv' -> [Stmt]{-where block-} -> SExp{-main expression-} -> SExp{-big let with lambdas; replaces global names with de bruijn indices-} | 1840 | mkLets :: GlobalEnv' -> [Stmt]{-where block-} -> SExp{-main expression-} -> SExp{-big let with lambdas; replaces global names with de bruijn indices-} |
1841 | mkLets _ [] e = e | 1841 | mkLets _ [] e = e |
1842 | mkLets ge (Let n _ Nothing (downS 0 -> Just x): ds) e = SLet x (substSG n (SVar 0) $ upS $ mkLets ge ds e) | 1842 | mkLets 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) |
1843 | mkLets ge (ValueDef (ns, p) x: ds) e = patLam ge p (deBruinify ns $ mkLets ge ds e) `SAppV` x -- (p = e; f) --> (\p -> f) e | 1843 | mkLets ge (ValueDef (ns, p) x: ds) e = patLam ge p (deBruinify ns $ mkLets ge ds e) `SAppV` x -- (p = e; f) --> (\p -> f) e |
1844 | mkLets _ (x: ds) e = error $ "mkLets: " ++ show x | 1844 | mkLets _ (x: ds) e = error $ "mkLets: " ++ show x |
1845 | 1845 | ||