1
1
mirror of https://github.com/github/semantic.git synced 2024-11-28 18:23:44 +03:00
Commit Graph

20777 Commits

Author SHA1 Message Date
Patrick Thomson
873091ed82 kill stray LANGUAGE pragma with which I was experimenting 2018-04-23 13:48:56 -04:00
Patrick Thomson
276234ed0d appease hlint 2018-04-23 13:30:17 -04:00
Patrick Thomson
061b6852a8 Add test cases. 2018-04-23 13:14:52 -04:00
Patrick Thomson
ab8dc613fd Fix tests. 2018-04-23 13:09:32 -04:00
Patrick Thomson
a57fd63da5 Add support for break and continue inside loops.
Similar to @charliesome's implementation of return, we throw a
non-resumable exception inside loop invocations, and handle these
cases inside MonadValue's `loop` function.
2018-04-23 12:46:57 -04:00
Timothy Clem
0ebf2185ab Merge remote-tracking branch 'origin/master' into lazy-parse 2018-04-23 09:23:58 -07:00
Josh Vera
d381721530 Merge pull request #1763 from github/revert-parens-fix
Remove explicit Paren node from syntax trees.
2018-04-23 12:06:17 -04:00
Patrick Thomson
1ffded4cd3 Merge branch 'master' into revert-parens-fix 2018-04-23 11:35:52 -04:00
Patrick Thomson
f7bde7cd25 Merge pull request #1760 from github/charliesome/return-exc
Use non-resumable exception for ControlThrow
2018-04-23 11:26:28 -04:00
Patrick Thomson
aee2d3494b Merge branch 'master' into revert-parens-fix 2018-04-23 11:20:14 -04:00
Patrick Thomson
af847899d9 Merge branch 'master' into charliesome/return-exc 2018-04-23 11:10:26 -04:00
Patrick Thomson
97a9ce718d Merge pull request #1758 from github/applicative-do
Use applicative do notation when parsing CLI arguments
2018-04-23 11:09:21 -04:00
Patrick Thomson
6f63463269 Remove explicit Paren node from syntax trees.
As @robrix pointed out, adding explicit parenthesis nodes to our ASTs
bloats them with no added gain in expressivity. A pretty-printing
solution should use something analogous to `showsPrec` to ensure that
parentheses are printed properly.
2018-04-23 11:00:10 -04:00
Patrick Thomson
33353d2800 Add a comment for Exc's RunEffect instance. 2018-04-23 10:44:34 -04:00
Timothy Clem
b41ee2df8e Appease hlint 2018-04-23 11:54:21 +10:00
Timothy Clem
35fb6c52b3 Give Exc a RunEffect instance 2018-04-23 11:54:21 +10:00
Charlie Somerville
2e21ecfd16 make ControlThrow a non-resumable exception 2018-04-23 11:54:20 +10:00
Charlie Somerville
c3b7458fe7 rename MonadThrow to MonadResume 2018-04-23 11:44:29 +10:00
Charlie Somerville
41fd599843 rename throwException to throwResumable, resumeException to resume 2018-04-23 11:44:29 +10:00
Timothy Clem
a75c75b214 Lint 2018-04-22 07:49:19 -07:00
Timothy Clem
373004bdf6 Fix docs 2018-04-22 07:48:04 -07:00
Timothy Clem
10d13cd424 Bring preludes back for testing, clean up Util 2018-04-22 07:47:59 -07:00
Timothy Clem
45386ed1ce Get the tests compiling again 2018-04-21 07:22:09 -07:00
Timothy Clem
773eef65ed Rename constructor to just file 2018-04-21 07:22:01 -07:00
Timothy Clem
e2722ea7e9 Construct File(s) here too 2018-04-20 16:34:37 -07:00
Timothy Clem
f96db32268 Few more test fixes 2018-04-20 16:30:06 -07:00
Timothy Clem
9d7a85cbda Expose EvaluatingEffects 2018-04-20 16:28:18 -07:00
Timothy Clem
625020a416 Fighting with the types in Util 2018-04-20 16:28:09 -07:00
Timothy Clem
7c2a8a464e Couple of test fixes 2018-04-20 16:27:53 -07:00
Timothy Clem
24aa9debbb Swap up order here 2018-04-20 16:27:44 -07:00
Timothy Clem
44e5dbb4fb Don't do this 2018-04-20 16:27:31 -07:00
joshvera
4c3114957e remove path dependency 2018-04-20 17:28:40 -04:00
Timothy Clem
0d05742b24 Remove listFiles 2018-04-20 14:16:03 -07:00
Timothy Clem
bdeb67d29f WIP Utils 2018-04-20 14:15:55 -07:00
Timothy Clem
402172c0fb Don't carry extensions in here 2018-04-20 14:15:51 -07:00
Timothy Clem
01703684cc Remove evaluateModules 2018-04-20 14:15:23 -07:00
joshvera
00f41170c2 Use ApplicativeDo notation in arguments parser 2018-04-20 16:45:48 -04:00
Timothy Clem
7ef36ea18f Slowly start to rework reading, parsing of a project to a package 2018-04-20 13:30:17 -07:00
joshvera
4c62bb9940 Add path 2018-04-20 15:06:27 -04:00
joshvera
17d2e4a13d Merge remote-tracking branch 'origin/master' into project-dir 2018-04-20 14:24:29 -04:00
Timothy Clem
ede5773b24 Refactor how we build up a Package and eval the prelude 2018-04-20 11:11:06 -07:00
Timothy Clem
156246e477 Finding a need for a File datatype 2018-04-20 11:10:27 -07:00
Josh Vera
48e2b6bc7f Merge pull request #1756 from github/charliesome/return
Implement early return
2018-04-20 13:58:14 -04:00
Charlie Somerville
0d9cb46d07 add test cases for early return 2018-04-20 14:47:52 +10:00
Charlie Somerville
bc2e74b4de implement Return semantics with ControlThrow.Ret exception 2018-04-20 14:47:52 +10:00
Charlie Somerville
b7c35ff67d add catchException to MonadThrow instance 2018-04-20 14:47:52 +10:00
Charlie Somerville
ae8ca35222 add a ControlThrow exception type 2018-04-20 14:47:49 +10:00
Timothy Clem
868651a529 Move graphImports and read/parse with distribute 2018-04-19 15:54:48 -07:00
Josh Vera
6812f5a6a1 Merge pull request #1751 from github/parse-examples
Test assignment for more example repos
2018-04-19 16:21:48 -04:00
Timothy Clem
07d8080ebb Merge remote-tracking branch 'origin/master' into parse-examples 2018-04-19 13:12:25 -07:00