1
1
mirror of https://github.com/github/semantic.git synced 2024-12-24 23:42:31 +03:00
Commit Graph

21468 Commits

Author SHA1 Message Date
Rob Rix
16df80a66a Define a helper to resume load errors. 2018-05-09 12:26:38 -04:00
Rob Rix
f2b0497212 Export moduleNotFound. 2018-05-09 12:25:41 -04:00
Rob Rix
a12383f6e1 Rename the LoadError constructor to ModuleNotFound. 2018-05-09 12:23:04 -04:00
Rob Rix
ccd7424af7 Define a moduleNotFound helper to throw LoadErrors. 2018-05-09 12:22:20 -04:00
Rob Rix
662e385b97 LoadErrors are resumed with the evaluated result, rather than the list of modules to evaluate. 2018-05-09 12:20:23 -04:00
Rob Rix
6330da5bce Factor the runModules call into runInModule. 2018-05-09 12:06:07 -04:00
Rob Rix
705a35a866 Merge branch 'master' into high-level-module-table-effect 2018-05-09 11:51:15 -04:00
Josh Vera
52e2e37cf0 Merge pull request #1823 from github/evaluate-closures-without-terms
Evaluate closures without terms
2018-05-08 17:07:16 -04:00
Rob Rix
2b1d976f6a Rename Control.Abstract.ModuleTable to Control.Abstract.Modules. 2018-05-08 16:59:25 -04:00
Rob Rix
d310b90a70 🔥 EvalClosure. 2018-05-08 16:51:03 -04:00
Rob Rix
afe7711a1b 🔥 EvalModule. 2018-05-08 16:47:10 -04:00
Rob Rix
90ec7a1355 Define load &c as a Modules effect, interpreted in terms of state/reader/error effects. 2018-05-08 16:47:06 -04:00
Rob Rix
3948f74810 Correct the type of the module table effect. 2018-05-08 16:46:17 -04:00
Rob Rix
21717cd079 Use the full type for the modules field of EvaluatingState. 2018-05-08 16:42:27 -04:00
Rob Rix
a1b1f78c95 Define a reinterpretEffect handler. 2018-05-08 16:28:28 -04:00
Rob Rix
4799bffeb0 🔥 a redundant constraint. 2018-05-08 15:47:52 -04:00
Rob Rix
aa35a8756e Abstract the evaluated modules behind a Loaded effect. 2018-05-08 15:46:15 -04:00
Rob Rix
f9ce008a36 🔥 LoadStack. 2018-05-08 15:15:50 -04:00
Rob Rix
1b2456e717 Correct a couple of comments. 2018-05-08 14:54:32 -04:00
Rob Rix
6fc21482db Sequence the messages around the evaluateModule call. 2018-05-08 14:45:45 -04:00
Rob Rix
f097c1a870 🔥 the need for the LoadStack. 2018-05-08 14:45:09 -04:00
Rob Rix
11b7328ccc Test whether we’re loading by inspecting the cache. 2018-05-08 14:42:30 -04:00
Rob Rix
72764795a6 📝 lookupModule. 2018-05-08 14:39:11 -04:00
Rob Rix
36066bc610 Use a lookupModule primitive. 2018-05-08 14:35:59 -04:00
Rob Rix
531774e6bd Cache a marker when we start loading a module. 2018-05-08 14:30:18 -04:00
Rob Rix
f1bf4ba019 Rephrase in terms of caching a result for a module. 2018-05-08 14:28:31 -04:00
Rob Rix
534a261e16 Store values in the evaluated module table in Maybe. 2018-05-08 14:23:04 -04:00
Rob Rix
bd0b7e965e Define & use UnevaluatedModules/EvaluatedModules synonyms. 2018-05-08 14:19:25 -04:00
Rob Rix
770a19770e Don’t export modifyModuleTable. 2018-05-08 14:10:51 -04:00
Rob Rix
704c0f8e8b 🔥 putModuleTable. 2018-05-08 14:09:56 -04:00
Rob Rix
758b7e330c 📝 Goto. 2018-05-08 13:52:37 -04:00
Rob Rix
cd16c36342 Merge branch 'master' into evaluate-closures-without-terms 2018-05-08 12:45:56 -04:00
Rob Rix
32c7385db1 And another. 2018-05-08 12:42:21 -04:00
Rob Rix
d02aafd834 🔥 a redundant language extension. 2018-05-08 12:41:43 -04:00
Rob Rix
1671624916 Tighten up the Goto action. 2018-05-08 12:39:17 -04:00
Patrick Thomson
edfac3f11a Merge pull request #1822 from github/task-graph-traces
Convert Graph and Task to use effectful traces.
2018-05-08 12:37:10 -04:00
Rob Rix
3332b1158d Go back to using ScopedTypeVariables to clean up the constraints. 2018-05-08 12:34:30 -04:00
Rob Rix
a20084363c Merge branch 'master' into evaluate-closures-without-terms 2018-05-08 12:10:05 -04:00
Patrick Thomson
2c4e3a0ca7 just don't export Trace at all 2018-05-08 12:06:34 -04:00
Rob Rix
fb04c57bdf Use a visible type application to inject the environment error. 2018-05-08 12:03:08 -04:00
Rob Rix
6b2b6c7ac4 Tidy up resumingEnvironmentError using reinterpret. 2018-05-08 12:01:12 -04:00
Rob Rix
cfb27ddd7d Tidy up the effect list equality constraints. 2018-05-08 11:56:54 -04:00
Patrick Thomson
484011666c Merge remote-tracking branch 'origin/master' into task-graph-traces 2018-05-08 11:56:20 -04:00
Rob Rix
58bb48453b 🔥 the scoped type variables. 2018-05-08 11:52:55 -04:00
Rob Rix
8dde7689cd Run module actions with the same effects as term actions. 2018-05-08 11:50:40 -04:00
Patrick Thomson
e9feb98835 Convert Graph and Task to use effectful traces.
This also removes `trace` from Prologue, since the monadic version is better.
2018-05-08 11:48:00 -04:00
Rob Rix
f9c8704ddc Goto doesn’t need to know about the package/module info. 2018-05-08 11:34:49 -04:00
Rob Rix
faefc52b08 Merge pull request #1821 from github/evaluator-dsl
Evaluator DSL
2018-05-08 11:33:14 -04:00
Rob Rix
14beff3902 Closure holds the package/module info. 2018-05-08 11:25:37 -04:00
Rob Rix
96694eadd3 Use withCurrentPackage/withCurrentModule when jumping around with goto. 2018-05-08 11:23:40 -04:00