diff options
author | Péter Diviánszky <divipp@gmail.com> | 2015-12-17 20:18:12 +0100 |
---|---|---|
committer | Péter Diviánszky <divipp@gmail.com> | 2015-12-17 20:18:12 +0100 |
commit | b6847210f618050f5d94f5b468b0ada6e221ed11 (patch) | |
tree | 73c2257d47a45490f2797b509dccebdd0022aa9b /prototypes | |
parent | c126723a46ec2c228b5dc5296e6725e8fedc90fc (diff) |
skip type annotations in where blocks for now
Diffstat (limited to 'prototypes')
-rw-r--r-- | prototypes/Infer.hs | 2 | ||||
-rw-r--r-- | prototypes/TODO | 2 |
2 files changed, 2 insertions, 2 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 | ||
diff --git a/prototypes/TODO b/prototypes/TODO index a5a61582..e51fba0c 100644 --- a/prototypes/TODO +++ b/prototypes/TODO | |||
@@ -62,7 +62,6 @@ fő tennivaló: a típusozó kiegészítése | |||
62 | 62 | ||
63 | - record projection functions | 63 | - record projection functions |
64 | - @ patterns | 64 | - @ patterns |
65 | - type annotation in where blocks | ||
66 | - where block in case | 65 | - where block in case |
67 | 66 | ||
68 | -------------------------------------------------------------------------------- TODOs after 100% tests (completion & cleanup) | 67 | -------------------------------------------------------------------------------- TODOs after 100% tests (completion & cleanup) |
@@ -70,6 +69,7 @@ fő tennivaló: a típusozó kiegészítése | |||
70 | - dependent prelude should work again | 69 | - dependent prelude should work again |
71 | - guards + where | 70 | - guards + where |
72 | - complete & review builtin reductions | 71 | - complete & review builtin reductions |
72 | - type annotation in where blocks | ||
73 | 73 | ||
74 | - record filed name handling | 74 | - record filed name handling |
75 | - constructor operator fixities (also in patterns) | 75 | - constructor operator fixities (also in patterns) |