1
1
mirror of https://github.com/github/semantic.git synced 2024-12-23 14:54:16 +03:00
Commit Graph

67 Commits

Author SHA1 Message Date
Rob Rix
547da73009 Define a patch helper to eliminate Patches. 2017-09-13 21:55:41 -04:00
Rob Rix
cf9d752d43 Parameterize Patch by before and after types. 2017-09-13 21:37:23 -04:00
Rob Rix
f6f61d4b3a 🔥 mapPatch. 2017-09-13 21:36:59 -04:00
Rob Rix
e19192b232 🔥 a load of Pretty* instances. 2017-09-12 16:19:18 -04:00
Rob Rix
da5bdac3d8 🔥 patchSum. 2017-09-09 21:36:22 +01:00
Rob Rix
4e3c34d8f7 Move the ToJSONFields instance for Patch into Patch. 2017-09-09 17:24:56 +01:00
Rob Rix
3ad5374b94 Move all the Listable stuff into the tests. 2017-09-09 14:44:57 +01:00
Rob Rix
221cf89b5b Derive Eq1 & Show1 instances for Patch. 2017-09-09 12:24:48 +01:00
Rob Rix
9e40e9a09a Give our own definition of Diff. 2017-09-09 11:23:57 +01:00
Rob Rix
07bef3f75e 🔥 deepseq. 2017-09-08 17:35:55 +01:00
Rob Rix
13df366dcd Define Patch’s Pretty1 instance generically. 2017-08-23 12:07:39 -04:00
Rob Rix
2c722a59c7 Define a Generic1 instance for Patch. 2017-08-23 12:07:26 -04:00
Rob Rix
562be941fe Fix up a few manual instances. 2017-08-23 11:52:00 -04:00
Rob Rix
fdd12d4718 Fix up all of the imports. 2017-08-23 11:49:43 -04:00
Rob Rix
3f979ad58e Simplify the Pretty1 instance for Patch. 2017-08-22 13:30:42 -04:00
Rob Rix
d133d3a9e9 Define a Pretty instance for Patch. 2017-08-22 12:59:24 -04:00
Rob Rix
246b220349 Define a Pretty1 instance for Patch. 2017-08-22 12:59:00 -04:00
Rob Rix
7da8799e08 🔥 Prologue & protolude. 2017-07-28 14:37:02 -04:00
Rob Rix
bbb7b352aa 🔥 afterOrBefore. 2017-05-11 17:16:19 -04:00
Rob Rix
915fdbb2c8 🔥 patchType. 2017-05-11 17:15:33 -04:00
Rob Rix
4ef3604a65 Revert "Revert "Define a Crosswalk instance for Patch.""
This reverts commit 20d96850fa7ee2b1ad3c949b128186eaa8f22f6b.
2017-05-11 14:19:34 -04:00
Rob Rix
ddd4c552a8 Revert "Define a Crosswalk instance for Patch."
This reverts commit bdb9bccf6be16eacef8a7f745ef40e4a14a29397.
2017-05-10 16:05:27 -04:00
Rob Rix
50263ae4f1 Define a Crosswalk instance for Patch. 2017-05-10 08:37:40 -04:00
Rob Rix
948869066c Even tighter. 2017-05-05 15:28:09 -04:00
Rob Rix
2ac1baef7a Tighten up the definition of afterOrBefore. 2017-05-05 15:27:50 -04:00
Rob Rix
8cd74f6ea2 afterOrBefore always returns a value. 2017-05-05 15:26:26 -04:00
Rob Rix
a8410e8829 🔥 various uses of LambdaCase. 2017-03-28 15:32:45 -04:00
Timothy Clem
94dc2ac506 Implement NFData instances so we can deepseq 2017-03-13 16:46:52 -07:00
Timothy Clem
8f40cbfad1 Use strings that match octicons for ease of PoC 2017-01-24 16:08:34 -08:00
joshvera
348d5ae699 Move patchType to Patch 2017-01-24 16:00:25 -05:00
joshvera
e3da60eada Add afterOrBefore function to Patch.hs 2017-01-24 15:58:17 -05:00
Rob Rix
c326fd447c Move the Listable instance for Patch into its module. 2017-01-09 14:45:09 -05:00
joshvera
1c3fe8e944 Add StrictData to semantic-diff library 2016-10-12 18:28:46 -04:00
joshvera
4281549eb0 Add -funbox-strict-fields annotations to some data types 2016-10-12 17:28:27 -04:00
joshvera
09304a5df2 Add strictness annotations to a few types 2016-10-12 16:34:12 -04:00
joshvera
2df90eada7 Account for false positive close terms
Improve nearestUnmapped by looking up the nearest unmapped term which is not a false positive. We look up the nearest unmapped terms closest to the query term, then sort by the constant time edit distance between the query term and the intersecting terms. Finally, we select the first term that has the lowest edit distance.
2016-08-17 16:34:58 -04:00
joshvera
d8ff761f40 Add mapPatch 2016-08-08 14:19:47 -04:00
Rob Rix
6b84266ac6 📝 the Patch DSL. 2016-08-04 12:51:05 -04:00
Rob Rix
663bb97a3d Define a DSL for constructing Patches. 2016-08-04 09:25:18 -04:00
Rob Rix
a0a86a0d01 Merge branch 'master' into ses-parallelism
# Conflicts:
#	semantic-diff.cabal
#	src/Patch.hs
2016-07-12 09:50:02 -04:00
Rob Rix
ad3bb31c0d Derive an Ord instance over Patch. 2016-06-30 12:51:11 -04:00
Rob Rix
ee393400f2 Formatting. 2016-06-30 12:50:52 -04:00
Rob Rix
ddc418bc57 Correct the before/after definitions to select the correct side. 2016-06-27 13:29:22 -04:00
Rob Rix
a0d896e0e2 Derive a Generic instance for Patch. 2016-06-06 15:31:57 -04:00
Rob Rix
fe6d638673 Derive a Traversable instance over Patch. 2016-05-31 20:41:12 -04:00
Rob Rix
de6d7edec2 Merge branch 'master' into cofree-and-bifunctors-sitting-in-a-tree-a-l-i-g-n-edly
# Conflicts:
#	semantic-diff.cabal
#	src/Alignment.hs
#	src/Control/Comonad/Cofree.hs
#	src/Data/Adjoined.hs
#	src/Diffing.hs
#	src/Interpreter.hs
#	src/Prologue.hs
#	src/Renderer/JSON.hs
#	src/Renderer/Patch.hs
#	src/Renderer/Split.hs
#	src/SplitDiff.hs
#	src/Term.hs
#	test/AlignmentSpec.hs
#	test/ArbitraryTerm.hs
#	test/PatchOutputSpec.hs
2016-05-27 09:35:26 -04:00
Rob Rix
cfe15a5afa Merge branch 'master' into cofree-and-bifunctors-sitting-in-a-tree-a-l-i-g-n-edly
# Conflicts:
#	src/Alignment.hs
#	src/Control/Comonad/Cofree.hs
#	src/Data/Adjoined.hs
#	src/Data/Align.hs
#	src/Data/Bifunctor/These.hs
#	src/Data/Coalescent.hs
#	src/Data/Copointed.hs
#	src/Data/Functor/Both.hs
#	src/Data/Option.hs
#	src/Line.hs
#	src/Patch.hs
#	src/Range.hs
#	src/Renderer/JSON.hs
#	src/Renderer/Patch.hs
#	src/Renderer/Split.hs
#	src/SplitDiff.hs
#	stack.yaml
#	test/AlignmentSpec.hs
#	test/CorpusSpec.hs
#	test/Data/Adjoined/Spec.hs
#	test/Data/Functor/Both/Spec.hs
2016-05-26 15:25:45 -04:00
joshvera
473ec980b1 Merge remote-tracking branch 'origin/master' into diff-summaries 2016-05-26 13:40:54 -04:00
joshvera
8180b37285 Use Protolude via the Prologue module and add NoImplicitPrelude 2016-05-26 12:58:04 -04:00
joshvera
a03be353d6 Expose Patch constructor and add summary 2016-04-25 22:14:53 -04:00