1
1
mirror of https://github.com/github/semantic.git synced 2024-12-22 14:21:31 +03:00
Commit Graph

21795 Commits

Author SHA1 Message Date
Rob Rix
cf756afc4a Move diffTermPair into Diffing.Interpreter. 2018-05-14 13:30:35 -04:00
Rob Rix
1dadae7d3d Specialize diffTermPair to call diffTerms itself. 2018-05-14 13:24:55 -04:00
Rob Rix
fbb7b4ef60 Strengthen the constraints on ASTParser. 2018-05-14 13:00:36 -04:00
Rob Rix
da76c29afa rename renderJSONTerm' to renderJSONAST. 2018-05-14 12:44:52 -04:00
Rob Rix
da24a70cf5 Simplify how we render terms to JSON. 2018-05-14 12:35:41 -04:00
Rob Rix
28ad7818f5 Don’t export renderJSONDiffs. 2018-05-14 12:31:32 -04:00
Rob Rix
d8e205d476 Don’t export renderJSONTerms. 2018-05-14 12:30:42 -04:00
Rob Rix
81be264bc6 DRY up the WrapTask stuff. 2018-05-14 12:19:58 -04:00
Rob Rix
a6124fa1a8 Add options to print branches by ConstructorName or by Show. 2018-05-14 11:46:11 -04:00
Rob Rix
a00a27b4e3 Pull a namedBranch helper back out of the ToSExpression instances. 2018-05-14 11:26:21 -04:00
Rob Rix
d65a184d40 Further placation of hlint. 2018-05-14 11:21:44 -04:00
Rob Rix
b1ff4aa210 Rename printTermF to branch. 2018-05-14 11:20:14 -04:00
Rob Rix
7908bd8e49 Pass the name to printTermF. 2018-05-14 11:13:56 -04:00
Rob Rix
347c18861e 🔥 the CustomConstructorName typeclass.
We can define ConstructorNameWithStrategy 'Custom instances instead.
2018-05-14 11:07:49 -04:00
Rob Rix
7532511c99 Placate hlint. 2018-05-14 11:01:58 -04:00
Rob Rix
02e14169e9 🔥 Rendering.SExpression. 2018-05-14 10:59:47 -04:00
Rob Rix
fca9278881 Always produce a "trees" key for JSON terms. 2018-05-14 10:56:05 -04:00
Rob Rix
1128537b6a Correct a bunch of fixtures. 2018-05-14 10:50:57 -04:00
Rob Rix
609c3076d9 Terminate a bunch of output with newlines. 2018-05-14 10:39:24 -04:00
Rob Rix
75ab25d443 Generalize the type of toOutput. 2018-05-14 10:31:40 -04:00
Rob Rix
436063142c Derive Eq & Show instances for Handle. 2018-05-14 10:28:58 -04:00
Rob Rix
b979e9757c Run the builders. 2018-05-14 10:28:01 -04:00
Rob Rix
fc70382d5b Correct the handle types. 2018-05-14 10:27:58 -04:00
Rob Rix
5813258037 Add a runBuilder helper. 2018-05-14 10:27:45 -04:00
Rob Rix
0d0aeafdc5 Add an openFileForReading helper for the tests. 2018-05-14 10:23:29 -04:00
Rob Rix
29be8a5243 Provide a helper which builds bytestrings. 2018-05-14 10:20:13 -04:00
Rob Rix
29af5d4d3a Build the bytestrings. 2018-05-14 10:18:52 -04:00
Rob Rix
cb7cc2b2b1 Merge branch 'master' into graph-rendering-and-serialization 2018-05-14 10:15:20 -04:00
Rob Rix
b141864b77 Revert "Extract symbolFieldsReader to the top level."
This reverts commit b46332df2d2bca571fb83fa0bcaf2567956d8b2b.
2018-05-14 10:13:06 -04:00
Rob Rix
a36c7dc7da Revert "Pull the options helper out to the top level."
This reverts commit b4ec0e8e33bbab52f8ec30bc193f0eab67884ec1.
2018-05-14 10:13:02 -04:00
Rob Rix
ad6c0d618e We don’t define any instances any more. 2018-05-14 10:11:15 -04:00
Rob Rix
757af4045b Rename writeToOutput to write. 2018-05-11 19:49:05 -04:00
Rob Rix
4ed2a76c3e Define a getHandle accessor. 2018-05-11 19:47:34 -04:00
Rob Rix
c54459df11 Export the Handle constructors. 2018-05-11 19:46:40 -04:00
Rob Rix
29af2ed78d Combine the reading options for files behind a Source datatype. 2018-05-11 19:43:16 -04:00
Rob Rix
1775354e4c Rename the write constructor. 2018-05-11 19:16:56 -04:00
Rob Rix
71a0fa3309 Add a wrapper for handles indicating their mode. 2018-05-11 19:11:54 -04:00
Rob Rix
ec6e3c3a52 Handle the handle case. 2018-05-11 18:47:44 -04:00
Rob Rix
6aba1557eb Add a destination type. 2018-05-11 18:42:09 -04:00
Rob Rix
5bfedac9b6 Pull the options helper out to the top level. 2018-05-11 17:25:58 -04:00
Rob Rix
89e5168e65 Extract symbolFieldsReader to the top level. 2018-05-11 17:23:06 -04:00
Rob Rix
8bb2793804 Split parseBlob into separate parsing/rendering steps. 2018-05-11 17:13:17 -04:00
Rob Rix
559c303bb6 We don’t need to decorate terms for S-expression serialization. 2018-05-11 17:07:19 -04:00
Rob Rix
3b77af069d Define a convenience to throw NoLanguageForBlob exceptions. 2018-05-11 17:06:33 -04:00
Rob Rix
d3fa821425 Redefine SomeParser as a constructor on Parser. 2018-05-11 16:59:27 -04:00
Rob Rix
f4eb1bbc2b Define a helper to abstract over operations on SomeTerm. 2018-05-11 16:58:35 -04:00
Rob Rix
010a101de2 Define an existentially-quantified abstraction over term types. 2018-05-11 16:48:33 -04:00
Rob Rix
bcb889f85d Use type applications to supply the list of typeclasses for someParser. 2018-05-11 16:43:53 -04:00
Rob Rix
eb41652cbd Output to builders. 2018-05-11 16:37:04 -04:00
Rob Rix
60c3c112d4 Render symbols to JSONOutput. 2018-05-11 16:36:12 -04:00