1
1
mirror of https://github.com/github/semantic.git synced 2024-12-21 05:41:54 +03:00
Commit Graph

20268 Commits

Author SHA1 Message Date
Rob Rix
15077437f2
Generalize makeTerm over the term type. 2019-10-18 18:59:47 -04:00
Rob Rix
811e740e1f
🔥 a redundant -fno-warn-orphans. 2019-10-18 18:59:34 -04:00
Rob Rix
996594dc5f
Generalize makeTerm' over the term type. 2019-10-18 18:55:52 -04:00
Rob Rix
0065b0d99a
🔥 guardTerm. 2019-10-18 18:52:34 -04:00
Rob Rix
694164d3d4
Abstract term injection & projection. 2019-10-18 18:50:41 -04:00
Rob Rix
e2379abeba
Give simpler primitives for IsTerm. 2019-10-18 18:48:12 -04:00
Rob Rix
b5c0608694
🔥 redundant quantifiers. 2019-10-18 18:44:55 -04:00
Rob Rix
1e401f5cc9
Define an abstraction over the Term introduction/elimination forms. 2019-10-18 18:43:43 -04:00
Rob Rix
f411e911d6
🔥 some redundant silencing of the orphan instances warning. 2019-10-18 18:28:23 -04:00
Rob Rix
d8e8fb679d
Go back to using the type synonym for the TSX assignment. 2019-10-18 18:27:17 -04:00
Rob Rix
dbd91ca2ef
Export the Term constructors/eliminators. 2019-10-18 18:25:33 -04:00
Rob Rix
a337ba1eb6
Fix a couple of indentation errors. 2019-10-18 18:23:24 -04:00
Rob Rix
ffab2423b1
Merge branch 'abstract-analysis-parsing' into abstract-a-la-carte-terms 2019-10-18 18:21:18 -04:00
Rob Rix
535c06d193
🔥 a redundant import. 2019-10-18 18:16:10 -04:00
Rob Rix
888a48e220
Undo some redundant changes. 2019-10-18 18:15:55 -04:00
Rob Rix
1b0d2f8758
Merge branch 'master' into abstract-analysis-parsing 2019-10-18 18:07:45 -04:00
Rob Rix
9e20fc889e
Merge branch 'master' into edit-these-patch 2019-10-18 18:06:57 -04:00
Rob Rix
cc2df9de19
Merge pull request #347 from github/join-these-blobs-with-this-one-weird-trick
Compute ToCs over precise ASTs
2019-10-18 18:05:25 -04:00
Rob Rix
17c173957e
🔥 the AccessControls1 instances for Markdown. 2019-10-18 18:03:58 -04:00
Rob Rix
bd010a4ca4
Merge branch 'join-these-blobs-with-this-one-weird-trick' into abstract-a-la-carte-terms 2019-10-18 18:00:36 -04:00
Rob Rix
54c6948e44
Queswish!
Co-Authored-By: Patrick Thomson <patrickt@github.com>
2019-10-18 17:38:02 -04:00
Rob Rix
d8b730c34a
Port everything over to Ruby.Term. 2019-10-18 17:33:26 -04:00
Rob Rix
179e610344
Port everything over to Markdown.Term. 2019-10-18 17:29:25 -04:00
Rob Rix
9d9c9bea5d
Port everything over to Go.Term. 2019-10-18 17:24:04 -04:00
Rob Rix
3f48a9da5a
Port everything over to Python.Term. 2019-10-18 17:19:52 -04:00
Rob Rix
ff30229d53
Rename the imports of Language.Python. 2019-10-18 17:16:02 -04:00
Rob Rix
af85945d03
Port everything over to PHP.Term. 2019-10-18 17:12:02 -04:00
Rob Rix
05e372d772
Port everything over to TypeScript.Term. 2019-10-18 17:01:20 -04:00
Rob Rix
293c2f77df
Derive an AcessControls instance for TypeScript.Term. 2019-10-18 16:57:52 -04:00
Rob Rix
dbc12c4ee6
Bring in a TypeScript term type. 2019-10-18 16:57:37 -04:00
Rob Rix
e29be5db78
Sort the import of Data.Diff up. 2019-10-18 16:55:27 -04:00
Rob Rix
db546c7d2e
Return TSX.Term from the top-level assignment. 2019-10-18 16:47:13 -04:00
Rob Rix
14ddc257db
Derive a VertexDeclaration instance for TSX.Term. 2019-10-18 16:43:50 -04:00
Rob Rix
4f53dcf310
Derive Eq, Ord, & Show instances for TSX.Term. 2019-10-18 16:42:40 -04:00
Rob Rix
49ed23d6fc
Define a HasSpan instance for TSX.Term. 2019-10-18 16:42:08 -04:00
Rob Rix
df815545eb
Derive a FreeVariables instances for TSX.Term. 2019-10-18 16:39:45 -04:00
Rob Rix
9cb6c69a1b
Define a Recursive instance for TSX.Term. 2019-10-18 16:39:01 -04:00
Rob Rix
78e332d5ba
Derive an AccessControls instance for TSX.Term. 2019-10-18 16:35:08 -04:00
Rob Rix
cbb366235d
Derive a Declarations instance for TSX.Term. 2019-10-18 16:34:56 -04:00
Rob Rix
bb2a325f4a
Derive .Diffs instances for TSX.Term. 2019-10-18 16:34:44 -04:00
Rob Rix
11905c6086
Derive a ToTags instance for TSX.Term. 2019-10-18 16:34:35 -04:00
Rob Rix
cacb3f0072
Derive all of the .Terms instances for TSX. 2019-10-18 16:34:24 -04:00
Rob Rix
15615fc4de
Define a DiffTerms instance for TSX. 2019-10-18 16:28:37 -04:00
Rob Rix
8a9a209c01
Define a Diff datatype specialized to TSX. 2019-10-18 16:27:24 -04:00
Rob Rix
ae68b69705
Derive a HasErrors instance. 2019-10-18 16:15:33 -04:00
Rob Rix
0ca1ea02aa
Derive some instances for Term. 2019-10-18 16:09:00 -04:00
Rob Rix
da2bb2ffb4
Define a Term type for TSX. 2019-10-18 16:08:31 -04:00
Rob Rix
00411293a5
Use the qualified term type. 2019-10-18 16:05:38 -04:00
Rob Rix
148b94c368
Extract TSX.Syntax into a new module. 2019-10-18 16:04:04 -04:00
Rob Rix
b3516fda6a
Generalize AssignmentParser over the term type. 2019-10-18 16:01:04 -04:00
Rob Rix
f64a028254
Use HasErrors in Measured assignment. 2019-10-18 16:00:04 -04:00
Rob Rix
fa34b0bab0
Express HasErrors at * -> *. 2019-10-18 15:59:52 -04:00
Rob Rix
70bbffc827
Replace errors with getErrors. 2019-10-18 15:57:58 -04:00
Rob Rix
aa17940852
Define a typeclass abstracting getting errors out of a term. 2019-10-18 15:57:17 -04:00
Rob Rix
85356d9050
These constraints are implied. 2019-10-18 15:50:07 -04:00
Rob Rix
d1b15cdb4f
Define all of the constraints over the term types. 2019-10-18 15:47:46 -04:00
Rob Rix
5b2745a67f
Define TSX.Term at * -> *. 2019-10-18 15:45:41 -04:00
Rob Rix
a3f8ca31bd
Define TypeScript.Term at * -> *. 2019-10-18 15:43:49 -04:00
Rob Rix
c7122040cb
Define PHP.Term at * -> *. 2019-10-18 15:39:23 -04:00
Rob Rix
7efbbcb424
Define Python.Term at * -> *. 2019-10-18 15:38:04 -04:00
Rob Rix
98c6e06d10
Define Go.Term at * -> *. 2019-10-18 15:36:31 -04:00
Rob Rix
51b64388ea
Define Markdown.Term at * -> *. 2019-10-18 15:34:42 -04:00
Rob Rix
a960957a3b
Define Ruby.Term at * -> *. 2019-10-18 15:33:14 -04:00
Rob Rix
4429055323
🔥 SomeAnalysisParser. 2019-10-18 15:18:14 -04:00
Rob Rix
9e3e383493
Use SomeParser instead of SomeAnalysisParser. 2019-10-18 15:16:17 -04:00
Rob Rix
04b922c014
Factor the language reification out of SomeAnalysisParser. 2019-10-18 15:13:37 -04:00
Rob Rix
a350eda24d
Don’t bind a variable for the parse function. 2019-10-18 15:05:42 -04:00
Rob Rix
e0115a8579
🔥 a kind signature. 2019-10-18 15:02:19 -04:00
Rob Rix
3dcc0de5b2
Facror the common part of runGraph out. 2019-10-18 15:00:41 -04:00
Rob Rix
3b2bda990f
Only bind the parser once. 2019-10-18 14:58:37 -04:00
Rob Rix
e7bca7c62a
Type applications. 2019-10-18 14:51:36 -04:00
Rob Rix
e0507e1323
🔥 EvalTerm. 2019-10-18 14:49:29 -04:00
Rob Rix
ddb708840f
Move a bunch of assumptions to EvalTerm. 2019-10-18 14:47:00 -04:00
Rob Rix
298d584c29
Define a single instance of AnalyzeTerm. 2019-10-18 14:39:22 -04:00
Rob Rix
bef3ca1ed8
Generalize EvalTerm to * -> *. 2019-10-18 14:37:55 -04:00
Rob Rix
70f33d45ef
Generalize everything over AnalyzeTerm. 2019-10-18 14:35:29 -04:00
Rob Rix
f9f6801b0d
🔥 AnalysisClasses. 2019-10-18 14:35:16 -04:00
Rob Rix
d83a19f703
Define an AnalyzeTerm instance for Quieterm. 2019-10-18 14:34:46 -04:00
Rob Rix
a6cce41d76
Define a VertexDeclaration instance for Quieterm. 2019-10-18 14:34:38 -04:00
Rob Rix
4d9043a8da
Sort the context. 2019-10-18 14:31:03 -04:00
Rob Rix
42a0ef63d2
Generalize SomeAnalysisParser over the term type. 2019-10-18 14:22:57 -04:00
Rob Rix
c32bcc884f
Define an AnalyzeTerm instance. 2019-10-18 14:22:42 -04:00
Rob Rix
2b000639b3
🔥 evaluateTerm. 2019-10-18 14:22:01 -04:00
Rob Rix
d9b78fae6b
Abstract evalTerm over a class. 2019-10-18 14:15:01 -04:00
Rob Rix
731173fc48
Define a class of terms that can be analyzed. 2019-10-18 14:08:50 -04:00
Rob Rix
95abbb3ce1
Generalize parsePythonPackage over the term type. 2019-10-18 13:56:32 -04:00
Rob Rix
7b9b1ecd2e
Generalize runCallGraph over the term type. 2019-10-18 13:54:46 -04:00
Rob Rix
000f127ff2
VertexDeclarations takes * -> *. 2019-10-18 13:47:40 -04:00
Rob Rix
1a99c7fc7f
Abstract graphingTerms over the term type. 2019-10-18 13:44:50 -04:00
Rob Rix
337ef7fac2
Split VertexDeclaration into base and lifted classes. 2019-10-18 13:43:06 -04:00
Rob Rix
2e8e65a13b
Rename VertexDeclaration to VertexDeclaration1. 2019-10-18 13:32:15 -04:00
Rob Rix
1a0943c5a0
Generalize withTermSpans. 2019-10-18 13:26:33 -04:00
Rob Rix
65e5db5d81
Avoid obscuring the specialization to Term. 2019-10-18 13:23:52 -04:00
Rob Rix
b8ed4c9b22
Use V1 instead of Maybe just in case. 2019-10-18 13:18:30 -04:00
Rob Rix
30b0f31020
Simplify VertexDeclaration to avoid the extra type parameter. 2019-10-18 13:18:02 -04:00
Rob Rix
5d3d0b6599
Alignment. 2019-10-18 13:01:30 -04:00
Rob Rix
055274fd78
🔥 Semantic.Util.Disabled. 2019-10-18 12:57:52 -04:00
Rob Rix
338df8935e
🔥 Semantic.REPL. 2019-10-18 12:57:26 -04:00
Rob Rix
e31f59ccda
Alignment. 2019-10-18 12:40:18 -04:00
Rob Rix
f119b444ff
Rename a parameter. 2019-10-18 12:28:13 -04:00
Rob Rix
b6f9fea37d
Use fromMaybes to define maybeBlobPair. 2019-10-18 12:26:50 -04:00
Rob Rix
41f38b1c59
Use Applicative to tidy up further. 2019-10-18 12:25:40 -04:00
Rob Rix
fecb0d8f1f
Use fromMaybes to clean up the FromJSON instance for BlobPair. 2019-10-18 12:25:09 -04:00
Rob Rix
fc93bb4b4d
Define a helper to construct an Edit from a pair of Maybes. 2019-10-18 12:24:44 -04:00
Rob Rix
cb3fa623b1
Alignment. 2019-10-18 12:20:32 -04:00
Rob Rix
1bdf9ff63a
Alignment. 2019-10-18 12:19:02 -04:00
Rob Rix
c80af0fc21
🔥 mergeEditWith. 2019-10-18 12:18:47 -04:00
Rob Rix
1d72bfe0ef
📝 mergeEdit. 2019-10-18 12:17:34 -04:00
Rob Rix
f140d97d23
Fix the docs for edit. 2019-10-18 12:16:26 -04:00
Rob Rix
6722f2f9da
Fix docs. 2019-10-18 12:15:20 -04:00
Rob Rix
84a448ad4f
Simplify the Bitraversable instance. 2019-10-18 12:14:47 -04:00
Rob Rix
a2812137c2
Alignment. 2019-10-18 12:12:55 -04:00
Rob Rix
b3e6f527a3
More alignment. 2019-10-18 12:12:29 -04:00
Rob Rix
f870e977ff
Align. 2019-10-18 12:12:02 -04:00
Rob Rix
8a7d72edbf
Rename the eq parameters. 2019-10-18 12:11:33 -04:00
Rob Rix
0764de8320
LambdaCase. 2019-10-18 12:11:19 -04:00
Rob Rix
38cff494e7
LambdaCase. 2019-10-18 12:11:06 -04:00
Rob Rix
7e5f28dba5
Define an Ord2 instance for Edit. 2019-10-18 12:10:50 -04:00
Rob Rix
1e30f49984
Use mergeEditWith to compute languageForBlobPair. 2019-10-18 12:06:53 -04:00
Rob Rix
14182b3d21
Use mergeEditWith to compute path keys. 2019-10-18 12:05:13 -04:00
Rob Rix
0dd2021a44
Define a generalization of mergeEdit. 2019-10-18 12:04:16 -04:00
Rob Rix
0b6b79b42b
Use mergeEdit to define pathForBlobPair. 2019-10-18 12:02:47 -04:00
Rob Rix
43eeca7d10
Define a helper to merge edits. 2019-10-18 12:02:38 -04:00
Rob Rix
23d34a7c6e
🔥 redundant parens. 2019-10-18 11:59:27 -04:00
Rob Rix
b00715e247
🔥 the pattern synonyms. 2019-10-18 11:57:26 -04:00
Rob Rix
36ee5fcfce
Alignment. 2019-10-18 11:52:50 -04:00
Rob Rix
571cb74d43
Style. 2019-10-18 11:52:38 -04:00
Rob Rix
7a3c4ac5fc
🔥 the Bicrosswalk instance for Edit. 2019-10-18 11:50:16 -04:00
Rob Rix
9170893153
Inline the definition of bicrosswalk & alignWith. 2019-10-18 11:48:43 -04:00
Rob Rix
9813bdd5f0
🔥 the re-export of Data.These from Prologue. 2019-10-18 11:29:03 -04:00
Rob Rix
939041c43a
tryAlignWith uses Edit. 2019-10-18 11:25:02 -04:00
Rob Rix
a7dc70f474
🔥 diffThese. 2019-10-18 11:20:35 -04:00
Rob Rix
c80219296e
Redefine BlobPair as a type synonym. 2019-10-18 11:12:54 -04:00
Rob Rix
bf9a4e1260
Parsing produces an Edit of terms. 2019-10-18 11:09:06 -04:00
Rob Rix
5c6371b6db
Don’t qualify the names of the Edit constructors. 2019-10-18 10:59:00 -04:00
Rob Rix
759ca6d3cc
Define BlobPair using Edit. 2019-10-18 10:58:36 -04:00
Patrick Thomson
8289e7eb22 Merge remote-tracking branch 'origin/master' into bump-lingo 2019-10-18 10:53:36 -04:00
Rob Rix
9cce18a921
🔥 Both. 2019-10-18 10:46:45 -04:00
Rob Rix
6606d52841
Eliminate uses of Both. 2019-10-18 10:45:59 -04:00
Rob Rix
29ceb4c8d6
Don’t export Both in the Prologue. 2019-10-18 10:26:20 -04:00
Rob Rix
88c12a963b
🔥 toThese. 2019-10-17 22:54:16 -04:00
Rob Rix
6f0c2a6450
Diff directly in Edit. 2019-10-17 22:53:45 -04:00
Rob Rix
55ee8b4f7a
Define a helper to diff an Edit of terms. 2019-10-17 22:53:21 -04:00
Rob Rix
b26c941b9c
🔥 SES.Edit. 2019-10-17 22:50:14 -04:00
Rob Rix
209f8871a5
Rename Patch to Edit. 2019-10-17 22:48:19 -04:00
Rob Rix
e4af857c5b
Rename Copy to Compare. 2019-10-17 22:44:57 -04:00
Rob Rix
7b37f3789f
Rename Data.Patch to Data.Edit. 2019-10-17 22:43:03 -04:00
Rob Rix
6b7ef7c725
🔥 before/after. 2019-10-17 22:39:34 -04:00
Rob Rix
b6caf8d98f
Move the ToJSONFields instance for Patch into Data.JSON.Fields. 2019-10-17 22:36:50 -04:00
Rob Rix
e6ffee0829
Import everything explicitly. 2019-10-17 22:35:43 -04:00
Rob Rix
76d35900df
Rename patch to edit. 2019-10-17 22:34:19 -04:00
Rob Rix
eb549cff26
Align. 2019-10-17 22:31:16 -04:00
Rob Rix
fc394d69e7
Rename some variables. 2019-10-17 22:28:35 -04:00
Rob Rix
c59e205447
Rename some type parameters. 2019-10-17 22:28:15 -04:00
Rob Rix
c452385869
Use LambdaCase to define patch. 2019-10-17 22:26:17 -04:00
Rob Rix
8f91dd09bb
Use defaults in terms of bitraverse. 2019-10-17 22:25:15 -04:00
Rob Rix
3cf78abe5f
LambdaCase. 2019-10-17 22:24:46 -04:00
Rob Rix
20c92cb22a
🔥 2019-10-17 22:21:26 -04:00
Rob Rix
aeff33b31a
🔥 a redundant OPTIONS_GHC pragma. 2019-10-17 22:20:41 -04:00
Rob Rix
fb72904e1b
Correct a doc comment. 2019-10-17 22:19:48 -04:00
Rob Rix
64c4fed882
Rename replacing to comparing. 2019-10-17 22:18:48 -04:00
Rob Rix
dd7f65828a
Rename replaceF to compareF. 2019-10-17 22:17:01 -04:00
Rob Rix
9557070bfb
Rename Replace to Compare. 2019-10-17 22:15:58 -04:00
Rob Rix
c07532e3f3
Merge branch 'toc-this-way' into join-these-blobs-with-this-one-weird-trick 2019-10-17 22:04:35 -04:00
Rob Rix
8a3c49f3df
Reformat dedupe. 2019-10-17 22:03:02 -04:00
Rob Rix
fbfcdd8985
LambdaCase. 2019-10-17 21:59:35 -04:00
Rob Rix
7ab0695766
More queswish.
Co-Authored-By: Patrick Thomson <patrickt@github.com>
2019-10-17 19:38:34 -04:00
Rob Rix
3d1732a061
Use the queswish operator.
Co-Authored-By: Patrick Thomson <patrickt@github.com>
2019-10-17 19:37:58 -04:00
Rob Rix
ea2cd5528a
Define a Bifunctor instance for Edit. 2019-10-17 13:55:59 -04:00
Rob Rix
30872c822f
Export SummarizeDiff & the parsers. 2019-10-17 13:50:12 -04:00
Rob Rix
1886c9d4e5
Parse language mode arguments for diffing. 2019-10-17 12:44:24 -04:00
Rob Rix
3d01323129
Extract the parser for the language modes. 2019-10-17 12:43:58 -04:00
Rob Rix
dca68d3714
Use precise parsers for ToC where available. 2019-10-17 12:43:50 -04:00
Rob Rix
c9eee51a15
Run a reader effect for the language modes around diffing. 2019-10-17 12:43:23 -04:00
Rob Rix
93c459b205
Derive SummarizeDiff instances for the precise AST types. 2019-10-17 12:35:51 -04:00
Rob Rix
45363a7950
Define a newtype for computing summaries from tags. 2019-10-17 12:33:51 -04:00
Rob Rix
b22d86b55b
Tags hold a Loc. 2019-10-17 12:28:32 -04:00
Rob Rix
f7a0673dfe
Carry the entire Loc along in Taggable. 2019-10-17 12:16:28 -04:00
Rob Rix
267115ce31
🔥 the text field from Declaration. 2019-10-17 11:36:04 -04:00
Rob Rix
ccc95d87b9
Reformat the end of Declaration. 2019-10-17 11:32:52 -04:00
Rob Rix
8b9a65c4f8
Export summarizeChange. 2019-10-17 11:29:22 -04:00
Rob Rix
1dbd5c6e8f
Rename recordSummary to summarizeChange. 2019-10-17 11:12:40 -04:00
Rob Rix
28d0a94996
Correct the docs for recordSummary. 2019-10-17 11:12:01 -04:00
Rob Rix
c3d7c426c6
Redefine Edit as a datatype. 2019-10-17 11:09:39 -04:00
Rob Rix
dff89a12fb
Define an Edit synonym instead of EditScript. 2019-10-17 11:02:58 -04:00
Rob Rix
925ff6fc41
Derive the ToTags instances for the precise term types. 2019-10-17 06:36:33 -04:00
Rob Rix
2e0f0c4eca
Define a newtype for Precise ToTags deriving. 2019-10-17 06:34:56 -04:00
Rob Rix
a05370f7e1
Move SummarizeDiff into TOCSummaries. 2019-10-17 06:32:47 -04:00
Rob Rix
ef0ec740c9
Incorporate decorateTerm into summarizeTerm. 2019-10-17 06:23:10 -04:00
Rob Rix
f78a16b5c7
🔥 redundant parens. 2019-10-17 06:07:18 -04:00
Rob Rix
b983117cbc
Pass the blobs to diffTerms in These. 2019-10-17 06:05:41 -04:00
Rob Rix
a6ea14ab0a
🔥 decoratingDiffWith. 2019-10-17 06:00:02 -04:00
Rob Rix
140c4019e5
Parsing pairs returns the blobs with the terms. 2019-10-17 05:56:34 -04:00
Rob Rix
0d93d67be8
Define SummarizeDiff over term pairs. 2019-10-17 05:51:32 -04:00
Rob Rix
ac027b325e
Define a function to decorate a pair of terms from a pair of blobs. 2019-10-17 05:47:21 -04:00
Rob Rix
3bb1d65228
Reformat. 2019-10-17 05:46:56 -04:00
Rob Rix
2604e94052
Define BlobPair as a newtype. 2019-10-17 05:16:23 -04:00
Rob Rix
073bf89ee8
Move formatIdentifier to Analysis.TOCSummary. 2019-10-17 04:25:38 -04:00
Rob Rix
a559479779
Align. 2019-10-17 04:24:17 -04:00
Rob Rix
cfb9151d0f
🔥 redundant deriving strategies. 2019-10-17 04:23:49 -04:00
Rob Rix
b682d04653
🔥 a redundant UNPACK pragma. 2019-10-17 03:39:28 -04:00
Rob Rix
baf1868d48
🔥 the proxies. 2019-10-17 03:25:51 -04:00
Rob Rix
5611398aa7
Align. 2019-10-17 03:24:45 -04:00
Rob Rix
9b2ddd3cbe
Sort imports. 2019-10-17 03:24:09 -04:00
Rob Rix
698cc4392d
🔥 CustomHasDeclaration. 2019-10-17 03:23:13 -04:00
Rob Rix
1f58e9a82d
Rename HasDeclarationWithStrategy to HasDeclarationBy. 2019-10-17 03:18:14 -04:00
Rob Rix
30a26f7ff2
🔥 HasDeclaration'. 2019-10-17 03:17:04 -04:00
Rob Rix
65fb560524
🔥 the whole parameter. 2019-10-17 03:15:54 -04:00
Rob Rix
ec7b0755ae
🔥 redundant parens. 2019-10-17 03:13:01 -04:00
Rob Rix
89b8fb1397
Don’t export declaration. 2019-10-17 03:08:09 -04:00
Rob Rix
bed762db8e
Rename DeclarationKind to Kind. 2019-10-17 03:05:33 -04:00
Rob Rix
62617b3eea
Rename the DeclarationKind constructors. 2019-10-17 03:04:57 -04:00
Rob Rix
3ddb57fb4c
List the Data.Aeson imports explicitly. 2019-10-17 03:04:41 -04:00
Rob Rix
12df95e509
Qualify the import of Data.Error. 2019-10-17 02:56:10 -04:00
Rob Rix
d23e0a17ba
Reformat toChange/toError. 2019-10-17 02:50:13 -04:00
Rob Rix
eb2ee42c7e
Extract some helpers to the top level. 2019-10-17 02:49:30 -04:00
Rob Rix
ea20b4e980
Preserve the kind in TOCSummary as late as possible. 2019-10-17 02:46:57 -04:00
Rob Rix
1990de19c2
Fix an indentation bug. 2019-10-17 02:44:57 -04:00
Rob Rix
9c5a5be7f4
Move formatKind into Analysis.TOCSummary. 2019-10-17 02:44:18 -04:00
Patrick Thomson
defbeb5e7e Merge remote-tracking branch 'origin/master' into bump-lingo 2019-10-16 23:40:08 -04:00
Rob Rix
5e3fd0e6d1
Reuse toMap. 2019-10-16 23:13:41 -04:00
Rob Rix
39a643c149
🔥 summaryKey. 2019-10-16 23:13:06 -04:00
Rob Rix
433288f715
Don’t bind separate variables for path/lang. 2019-10-16 23:12:27 -04:00
Rob Rix
a91fd4fd5a
Align. 2019-10-16 23:10:22 -04:00
Rob Rix
9ffddbd203
Reuse toFile. 2019-10-16 23:10:00 -04:00
Rob Rix
491d912c3e
Map instead of folding. 2019-10-16 23:08:54 -04:00
Rob Rix
e06187627f
Correct how we construct Summaries. 2019-10-16 23:08:36 -04:00
Rob Rix
9fc7b807e1
Split TOCSummary up into separate datatypes for valid and error summaries. 2019-10-16 23:02:16 -04:00
Rob Rix
4417506758
Build lists in the fold. 2019-10-16 22:55:47 -04:00
Rob Rix
3ef5943117
Don’t rebuild the whole message every step. 2019-10-16 22:46:01 -04:00
Rob Rix
c35d91736f
Don’t convert the kind to text during deduping. 2019-10-16 22:38:22 -04:00
Rob Rix
fd888e8243
Derive an Ord instance for DeclarationKind. 2019-10-16 22:37:46 -04:00
Rob Rix
53b25956d2
Align. 2019-10-16 22:36:15 -04:00
Rob Rix
d531418ba2
Fix the docs for Change. 2019-10-16 22:35:50 -04:00
Rob Rix
7c6c677fda
Preserve the full Change in TOCSummary as late as possible. 2019-10-16 22:34:24 -04:00
Rob Rix
5b452bf471
Rename the entry field of Dedupe to change. 2019-10-16 22:29:17 -04:00
Rob Rix
2d3f74f2b5
Rename some variables. 2019-10-16 22:27:26 -04:00
Rob Rix
8c0c6ebcd4
Rename formatEntry to formatChange. 2019-10-16 22:26:55 -04:00
Rob Rix
27ae91c883
Rename ChangeType to Change. 2019-10-16 22:25:24 -04:00
Rob Rix
05e3944464
Rename the changeType field to change. 2019-10-16 22:25:02 -04:00
Rob Rix
dd4c6ed8a5
Rename Entry to ChangeType. 2019-10-16 22:23:04 -04:00
Rob Rix
a1c9738d69
Move Entry up. 2019-10-16 22:22:12 -04:00
Rob Rix
bad94967a9
Rename the ErrorSummary fields. 2019-10-16 22:21:36 -04:00
Rob Rix
bd7c33d1ae
Align. 2019-10-16 22:20:25 -04:00
Rob Rix
9dc8140af7
Reformat the ErrorSummary case. 2019-10-16 22:20:19 -04:00
Rob Rix
5d376b41a5
Rename the TOCSummary fields. 2019-10-16 22:19:58 -04:00
Rob Rix
3be5fa1953
🔥 the Generic instance for TOCSummary. 2019-10-16 22:18:27 -04:00
Rob Rix
58a208ddc8
Align the TOCSummary fields. 2019-10-16 22:16:49 -04:00
Rob Rix
fbf87d22c1
🔥 some redundant signatures. 2019-10-16 22:15:35 -04:00
Rob Rix
dc6782c6b4
🔥 LegacySummarizeDiff. 2019-10-16 22:13:59 -04:00
Rob Rix
7f959d1978
Define legacyDiffSummary using summarizeDiff. 2019-10-16 22:13:14 -04:00
Rob Rix
def8e1b6fb
Move the guts of summarizeDiff into TOCSummaries. 2019-10-16 22:11:36 -04:00
Rob Rix
cb77c1b810
🔥 renderToCDiff. 2019-10-16 18:55:32 -04:00
Rob Rix
27ad92b6b1
Inline the definition of renderToCDiff into legacySummarizeDiff. 2019-10-16 18:54:57 -04:00
Rob Rix
429cf1e7c3
Rename entryChange to formatEntry. 2019-10-16 18:47:02 -04:00
Rob Rix
0531d03f91
Rename toCategoryName to formatKind. 2019-10-16 18:46:47 -04:00
Rob Rix
1242180ccc
Don’t export toCategoryName. 2019-10-16 18:46:16 -04:00
Rob Rix
220c6dd133
Rename the Declaration fields. 2019-10-16 18:42:57 -04:00
Rob Rix
b99dc6ad23
Unpack DedupeKey. 2019-10-16 18:41:10 -04:00
Rob Rix
9dbb019833
🔥 findSimilarBy. 2019-10-16 18:39:32 -04:00
Rob Rix
a98588bf29
Don’t recompute the key. 2019-10-16 18:39:07 -04:00
Rob Rix
f8a24c4c4d
Reformat. 2019-10-16 18:36:09 -04:00
Rob Rix
83a84e0d22
Alignment. 2019-10-16 18:35:52 -04:00
Rob Rix
a0fbf8433e
🔥 redundant parens. 2019-10-16 18:35:36 -04:00
Rob Rix
fe1de046b0
findSimilar returns just the similar Declaration. 2019-10-16 18:35:00 -04:00
Rob Rix
8519e25b26
Call entryChange from recordSummary. 2019-10-16 18:30:56 -04:00
Rob Rix
94099aad8f
Don’t prefix the Dedupe fields. 2019-10-16 18:29:47 -04:00
Rob Rix
c94e53adf9
Don’t repack Dedupe when we don’t have to. 2019-10-16 18:28:11 -04:00
Rob Rix
ca4247d6af
🔥 the signature for go. 2019-10-16 18:27:18 -04:00
Rob Rix
b2bbe03e85
Map the entries into Dedupe. 2019-10-16 18:27:05 -04:00
Rob Rix
b3e49380c7
Use strict triples in the maps. 2019-10-16 18:26:10 -04:00
Rob Rix
978b406be2
Don’t match the index & entry. 2019-10-16 18:20:57 -04:00
Rob Rix
8b4c045e0d
Define go as a case expression. 2019-10-16 18:19:32 -04:00
Rob Rix
f366d4519d
Extract a helper to find a similar entry. 2019-10-16 18:16:59 -04:00
Rob Rix
444f0b306c
Index the elements, not the fold. 2019-10-16 18:15:37 -04:00
Rob Rix
ce0866dc1b
Uncurry go. 2019-10-16 18:14:27 -04:00
Rob Rix
2523d60b2c
Rename similarDecl to similar. 2019-10-16 18:13:14 -04:00
Rob Rix
fba58c685f
🔥 termTableOfContentsBy. 2019-10-16 18:12:40 -04:00
Rob Rix
e084c83b7f
Alignment. 2019-10-16 18:11:24 -04:00
Rob Rix
203ea9c954
Define recordSummary using guards. 2019-10-16 18:05:51 -04:00
Rob Rix
73713125cd
Extract formatIdentifier to the top level. 2019-10-16 18:04:08 -04:00
Rob Rix
be95b43b71
Reformat formatIdentifier. 2019-10-16 18:03:13 -04:00
Rob Rix
a0d9f57239
Pattern match in dedupeKey. 2019-10-16 18:00:52 -04:00
Rob Rix
ab0781c07a
Factor Declaration into a kind and the rest of the fields. 2019-10-16 18:00:05 -04:00
Rob Rix
10e82079b9
🔥 the Generic instance for Declaration. 2019-10-16 17:54:48 -04:00
Rob Rix
3a3145050c
Spacing. 2019-10-16 17:45:27 -04:00
Rob Rix
6f7683c9a7
🔥 redundant parens. 2019-10-16 17:45:17 -04:00
Rob Rix
483e6b2f2c
Curry go. 2019-10-16 17:42:13 -04:00
Rob Rix
50638e0205
Factor out the tuple. 2019-10-16 17:40:57 -04:00
Rob Rix
bfec2ffa45
Reformat go. 2019-10-16 17:40:20 -04:00
Rob Rix
582d516bf4
Inline tuples. 2019-10-16 17:39:21 -04:00
Rob Rix
a488ec2d9f
Compose. 2019-10-16 17:39:08 -04:00
Rob Rix
a2348e3463
Monomorphize. 2019-10-16 17:38:41 -04:00
Rob Rix
b54d109311
Move tuples into the where clause. 2019-10-16 17:35:46 -04:00
Rob Rix
70414495f5
🔥 exactMatch. 2019-10-16 17:35:17 -04:00
Rob Rix
d9505164fb
Match the decl explicitly. 2019-10-16 17:34:40 -04:00
Rob Rix
bf8f03ce37
🔥 a let. 2019-10-16 17:33:43 -04:00
Rob Rix
6ced7e6fae
dedupeKey takes the second field only. 2019-10-16 17:32:14 -04:00
Rob Rix
aa98934d85
Split the entry change type logic out of recordSummary. 2019-10-16 17:29:58 -04:00
Rob Rix
fb41c1741e
🔥 the export of entrySummary. 2019-10-16 17:29:35 -04:00