1
1
mirror of https://github.com/github/semantic.git synced 2024-12-26 00:12:29 +03:00
Commit Graph

21723 Commits

Author SHA1 Message Date
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
Rob Rix
289ecd7678 Render JSON diffs/terms to JSONOutput. 2018-05-11 16:21:59 -04:00
Rob Rix
d1516c6f04 Define an Output instance for JSONOutput. 2018-05-11 16:17:53 -04:00
Rob Rix
e4ead782bc Define a JSONOutput newtype. 2018-05-11 16:11:32 -04:00
Rob Rix
62dac89a0b Derive a ToJSON instance for monoidal maps. 2018-05-11 16:09:28 -04:00
Rob Rix
4a2c2c098d Define a singleton constructor for monoidal maps. 2018-05-11 16:08:44 -04:00
Rob Rix
85acb4367a Align all the help text. 2018-05-11 16:00:42 -04:00
Rob Rix
e6c665ae36 Remove a redundant quantifier. 2018-05-11 15:52:14 -04:00
Rob Rix
0867bb4dd8 Align the graph type. 2018-05-11 15:35:13 -04:00
Rob Rix
888fea5c29 Merge pull request #1831 from github/bump-effects-and-spell-out-types
Bump effects and spell out types
2018-05-11 15:32:28 -04:00
Rob Rix
a9d3b29e02 We expect a ByteString here. 2018-05-11 15:31:28 -04:00
Rob Rix
619e9f537f 🔥 GraphRenderer. 2018-05-11 15:29:46 -04:00
Rob Rix
e37bc83f14 Serialize graphs instead of rendering them. 2018-05-11 15:28:37 -04:00
Rob Rix
df1776ba27 Re-export some types &c. from Semantic.Graph. 2018-05-11 15:27:59 -04:00
Rob Rix
0f9279b5f7 Serialize graphs to JSON. 2018-05-11 15:17:30 -04:00
Rob Rix
599f10f76b Add a SomeFormat type to abstract over the input type. 2018-05-11 15:15:48 -04:00
Rob Rix
9ed1bc4a38 ByteStrings. 2018-05-11 14:59:50 -04:00
Rob Rix
3854ce6d19 Serialize diffs to s-expressions. 2018-05-11 14:58:06 -04:00
Rob Rix
28d4fc30fc Placate hlint. 2018-05-11 14:55:49 -04:00
Rob Rix
6872baa090 Serialize terms to s-expressions. 2018-05-11 14:53:22 -04:00
Rob Rix
bf334d24a5 Define a JSON serializer. 2018-05-11 14:50:45 -04:00
Rob Rix
93c61afa14 Define runSerialize tacitly. 2018-05-11 14:45:53 -04:00
Rob Rix
e427457801 Define an s-expression format. 2018-05-11 14:45:17 -04:00