Patrick Thomson
c2b46a6aba
Simplify Data.Project.
...
We don't need this to be parameterized in terms of the filepath and
container type, because we no longer generate protobuf code from this
structure.
This should have no impact on tests or output.
2019-05-31 13:13:56 -04:00
Douglas Creager
cf803555e5
Make error reporter API generic
...
Instead of hard-coding the HTTP API we use for uploading errors to our
internal service, let the user provide an arbitrary function (in the IO
monad) for uploading them. The default config will create an error
reporter that logs errors to the console, just like happened before if
you didn't set the `HAYSTACK_URL` environment variable.
2019-05-31 08:58:34 -04:00
Patrick Thomson
c34319c82e
Fix lints.
2019-05-29 10:45:53 -04:00
Patrick Thomson
db8935d317
Merge remote-tracking branch 'origin/master' into remove-tagger
2019-05-29 10:38:21 -04:00
Patrick Thomson
830297cdb1
Remove Tagger DSL.
...
This doesn't do anything that just using Machine and Plan would do
more efficiently and with fewer LoC.
2019-05-27 09:50:32 -04:00
Patrick Thomson
af1f95f1d3
Remove Error effect from tagging internals.
...
This code was based on code I wrote for the reprinter, which had
different correctness constraints than does the tagging system:
specifically, the tagging code does not fail, as there is a
recoverable result even if we get pathological input. As such, there's
no need to wrap this in an Either that is always Right.
2019-05-25 14:33:18 -04:00
Patrick Thomson
0fb8595617
I guess GHC thinks these UNPACKs are unusable.
2019-05-24 11:55:31 -04:00
Patrick Thomson
2b6bc89d26
Merge branch 'blob-depends-on-file' of github.com:github/semantic into blob-depends-on-file
2019-05-24 11:53:34 -04:00
Patrick Thomson
8e0962712e
legacyMakeBlob => makeBlob. Also unpack File.
2019-05-24 11:52:35 -04:00
Patrick Thomson
67ffebb9a1
Merge branch 'master' into blob-depends-on-file
2019-05-23 14:01:50 -04:00
Patrick Thomson
a3f54af945
Disable optimizations for Util and REPL to speed up -O1 builds.
...
Turns out you can disable optimizations per-module. This is a good
decision, as on my laptop GHC takes an appalling amount of time to
finish building at `-O1`. Let's see if this is reflected in the time
the builders take. (This should have no performance implications for
CLI use of `semantic`, as only SpecHelpers and REPL import Util.)
2019-05-22 17:43:57 -04:00
Patrick Thomson
63a7f117eb
If we're not gonna rename File, give Blob the logical field name.
2019-05-21 22:58:25 -04:00
Patrick Thomson
00164372c9
Fix shadowing issues.
2019-05-21 22:43:16 -04:00
Patrick Thomson
b8d3a06a67
Fix all the test cases.
2019-05-21 22:28:32 -04:00
Patrick Thomson
9509ec37b8
absolutely massive patch that touches everything
2019-05-21 22:05:23 -04:00
Josh Vera
4bca62fd63
Merge branch 'master' into install-sig-handlers
2019-05-21 16:29:29 -04:00
Josh Vera
543734bc94
Merge branch 'master' into install-sig-handlers
2019-05-21 16:28:33 -04:00
joshvera
4f55f6a88f
redundant import
2019-05-21 13:07:34 -04:00
Patrick Thomson
fa9f4ee559
Merge branch 'master' into upgrade-distribute
2019-05-21 13:05:55 -04:00
Patrick Thomson
162e8ec59a
unused import
2019-05-21 12:06:28 -04:00
Patrick Thomson
c7105746c4
fix whitespace
2019-05-21 12:02:24 -04:00
Patrick Thomson
a8974e39d9
Second pass, imposing an export list.
2019-05-21 12:01:18 -04:00
Patrick Thomson
f89becc182
Disable functions in Semantic.Util not used by specs or tests.
2019-05-21 11:46:40 -04:00
joshvera
73a2bd0af2
donut snake case
2019-05-21 10:50:16 -04:00
Patrick Thomson
2f6ad83728
Decouple DistributeC from LiftC IO.
2019-05-21 10:42:20 -04:00
joshvera
76ece76746
lints
2019-05-20 18:52:58 -04:00
joshvera
b8634b07c8
Rethrow posix signals to the main thread
2019-05-20 18:48:27 -04:00
Patrick Thomson
0c55512221
Merge branch 'master' into ignore-minified-js
2019-05-16 13:41:59 -04:00
Patrick Thomson
6aaa2f47fd
The hints... were wrong?
2019-05-15 18:33:22 -04:00
Patrick Thomson
f11a244f19
More lints.
2019-05-15 18:30:56 -04:00
Patrick Thomson
ad070aa1ab
Lints.
2019-05-15 18:29:47 -04:00
Patrick Thomson
0197e40f38
Document rethrowing.
2019-05-15 18:28:21 -04:00
Patrick Thomson
e421dbeb20
We probably want to only catch sync errors here.
2019-05-15 18:25:09 -04:00
Patrick Thomson
70463f79f9
Remove cubic-caller problem.
2019-05-15 18:21:07 -04:00
Patrick Thomson
334243efc0
Make readFilePair fail in IO rather than require extra MonadFail.
2019-05-15 18:04:07 -04:00
Patrick Thomson
a544c2d6d8
Refactor internals of FilesC to use catch rather than Exc.catch.
2019-05-15 18:04:07 -04:00
Patrick Thomson
e18cb752ce
Use Catch in the REPL.
2019-05-15 18:04:07 -04:00
Patrick Thomson
73b0b17ff0
Add Catch to the TaskEff stack.
2019-05-15 18:04:07 -04:00
Patrick Thomson
45492449c1
Ignore minified .js files ( #2529 )
...
aleph is doing more work than it needs to, as semantic is
all-too-enthusiastic to read in a whole node_modules directory of
minified .js files. A few well-placed boolean checks ensure that
we don't waste these cycles.
Fixes #2529 .
2019-05-15 12:49:51 -04:00
Patrick Thomson
877e440800
Merge branch 'master' into remove-boring-instances
2019-05-13 13:29:31 -04:00
Timothy Clem
b2ff549d53
Remove this stat
2019-05-09 15:06:13 -07:00
Timothy Clem
7830fb9137
Cleanup to oneline
2019-05-09 13:19:43 -07:00
Timothy Clem
eae4bdb8c7
Allow passing excludes on stdin
2019-05-09 13:17:18 -07:00
Patrick Thomson
f31cc397ad
For some reason, only Hlint died on this syntax error.
2019-05-08 11:17:49 -04:00
Patrick Thomson
039dca154a
Forgot some newtype specifiers.
2019-05-08 11:15:21 -04:00
Patrick Thomson
65ca86534e
🔥 Semantic.Task.Files.
2019-05-08 11:06:28 -04:00
Patrick Thomson
ec03076cf1
🔥 Control.Effect.REPL.
2019-05-08 11:04:33 -04:00
Patrick Thomson
46bcc03437
🔥 Control.Abstract.Modules.
2019-05-08 11:03:16 -04:00
Patrick Thomson
f8a2cda0d0
🔥 Control.Abstract.ScopeGraph
2019-05-08 11:01:16 -04:00
Patrick Thomson
6024a7b0d9
🔥 Control.Abstract.Value.
2019-05-08 11:00:03 -04:00