1
1
mirror of https://github.com/github/semantic.git synced 2024-12-28 09:21:35 +03:00
Commit Graph

27 Commits

Author SHA1 Message Date
Timothy Clem
ce04fa8f12 Refactor runTask 2019-02-01 15:04:23 -08:00
Patrick Thomson
51331c505e turn the last spec back on and add docs 2018-12-11 18:10:57 -05:00
Patrick Thomson
684a752773 remove Semantic.Util.Rewriting 2018-12-11 17:47:13 -05:00
Patrick Thomson
1f44f81acc Unify Control.Rewriting and Control.Matching. 2018-12-11 17:12:24 -05:00
Patrick Thomson
ef696d3c41 Split up Semantic.IO.
This looks like a big patch, but it's very straightforward: no
behavior has changed.

After the umpteenth time spent hitting a compile error because I
passed a `FilePath` rather than a `File` to `readBlobFromPath`, I
decided to finally make the needed refactors to Semantic.IO, and to
split off the `File` type and `Files` effect. This patch:

* adds the `MonadIO` class to `Prologue`'s export list
* moves `File` into `Data.File`
* moves `Handle` into `Data.Handle`
* moves `Files` into `Semantic.Task.Files`
* moves functions for reading blobs into `Data.Blob`
* keeps general IO helpers in Semantic.IO
* renames `readFile` to `readBlobFromFile`
* renames `readBlobFromPath` to `readBlobFromFile'`

This should have a positive effect on compile times and ease of
navigation throughout the codebase.
2018-10-23 15:37:49 -04:00
Patrick Thomson
5e52bede0a Fix the test suite. 2018-10-15 12:47:18 -04:00
Patrick Thomson
a36af2e785 Remove Hungarian-style T- prefix from tokens and scopes.
Prefixes on data constructors are generally an antipattern in Haskell:
if you're concerned about name collisions, have clients use qualified
imports for whatever modules they need. As such, this removes the T-
prefixes from the `Token` and `Context` types. This also renames
Context to Scope, which is a more exact and readable name.
2018-09-19 11:54:12 -04:00
Patrick Thomson
d6eaae9555 further cleanup and refinement of tests 2018-09-12 11:46:41 -04:00
Patrick Thomson
0802e0a9f2 Use a deep embedding for Tokenize. 2018-09-11 18:54:37 -04:00
Timothy Clem
df17d9ffda Don't do miniRuby either 2018-08-30 13:10:18 -07:00
Timothy Clem
5939a6139d Remove segfaulting miniPythonParser test for now 2018-08-29 10:42:36 -07:00
Timothy Clem
0931fc81f2 Add a simple roundtrip spec for python printing 2018-08-28 10:31:54 -07:00
Timothy Clem
bf5e72fc6d Fix up tests, since I moved these helpers 2018-08-24 11:07:54 -07:00
Timothy Clem
3214519718 Very basic test for ruby printing 2018-08-22 13:47:30 -07:00
Timothy Clem
3e0a6b95cc Lints, formatting, docs, cleanup 2018-08-22 13:35:40 -07:00
Timothy Clem
beb0f5f6c3 This got renamed 2018-08-21 09:39:47 -07:00
Timothy Clem
441c47f5ec Fix up specs 2018-08-20 09:03:03 -07:00
Timothy Clem
600942dcf1 Fix up these tests 2018-08-15 14:01:58 -07:00
Patrick Thomson
8549440f21 even better names, and a helper script to narrow tests 2018-08-03 13:15:14 -04:00
Patrick Thomson
2ec082d92c implement the typesetting stage 2018-08-03 12:47:54 -04:00
Patrick Thomson
081d8eb6fa Reorganize and add microlens, at least for now. 2018-08-03 12:23:47 -04:00
Patrick Thomson
0a82d053d9 Found the bug: defaulting whenRefactored was wrong. 2018-08-01 12:13:10 -04:00
Patrick Thomson
76727e07da rename 2018-07-31 17:49:03 -04:00
Patrick Thomson
81ac3ae2f5 the SYR algorithm isn't right. something is weird here 2018-07-31 16:48:00 -04:00
Patrick Thomson
bda8e3fc4f some simple specs for the pipeline 2018-07-31 14:08:05 -04:00
Patrick Thomson
dccea555ed Extremely ad-hoc renderer to Docs 2018-07-31 12:44:20 -04:00
Patrick Thomson
6823fb92b6 better module name 2018-07-31 10:43:46 -04:00