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
ce0b95bb79
Take a Maybe Language in graphPackage
2018-04-20 19:14:50 -04:00
joshvera
85995afb99
Parse a language
2018-04-20 19:14:25 -04:00
joshvera
d568c9cf13
Add graphPackage function
2018-04-20 19:03:30 -04:00
joshvera
63f07fcee8
Merge remote-tracking branch 'origin/applicative-do' into project-dir
2018-04-20 18:27:51 -04: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
Josh Vera
c0ac46699f
Merge pull request #1752 from github/infinite-loops
...
Add a hole value type and terminate conditions if given a hole
2018-04-19 16:03:05 -04:00
joshvera
7d5daff1c0
Remove import logging
2018-04-19 15:54:22 -04:00
Josh Vera
98b11bfa44
Merge branch 'master' into infinite-loops
2018-04-19 15:52:08 -04:00
Patrick Thomson
da9696e5ab
Merge pull request #1753 from github/effects-bump
...
Bump joshvera/effects to 0.3.0.1.
2018-04-19 15:28:25 -04:00