1
1
mirror of https://github.com/github/semantic.git synced 2024-12-23 06:41:45 +03:00
Commit Graph

41 Commits

Author SHA1 Message Date
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
Rob Rix
a61d847705 Replace Data.Bifunctor.These and Data.Align with the these package. 2016-04-14 22:00:00 -04:00
Rob Rix
a93a99caa2 Move maybeFst/maybeSnd into Patch. 2016-04-14 21:19:21 -04:00
Rob Rix
e3ace6408c Merge branch 'master' into cofree-and-bifunctors-sitting-in-a-tree-a-l-i-g-n-edly
# Conflicts:
#	test/AlignmentSpec.hs
#	test/PatchOutputSpec.hs
2016-04-14 12:57:45 -04:00
Rob Rix
ddeb3f9063 Derive a Foldable instance for Patch. 2016-04-11 16:50:48 -04:00
Rob Rix
16bdf2c1a5 Rename maybeFirst/maybeSecond to maybeFst/maybeSnd. 2016-03-21 23:56:03 -04:00
Rob Rix
5eded53479 Patch returns its values in These. 2016-03-14 15:40:35 -04:00
Rob Rix
0ff4df2e29 Implement before & after over Both. 2016-03-02 14:31:40 -05:00
Rob Rix
18394ec16b Produce Both sides of a Patch. 2016-03-02 14:31:40 -05:00
Rob Rix
99d184f7fe Rearrange some parentheses. 2016-02-23 10:15:06 -07:00
Matt Diephouse
9c272a40d7 Document declarations in Patch.hs 2016-01-14 11:18:57 -05:00
Rob Rix
f00b8c3e7d Add a patchSum function. 2015-11-30 19:08:28 -05:00
Rob Rix
02b07b70d8 Add a before function. 2015-11-19 17:25:28 -08:00
Rob Rix
69e2efc977 Get the after state out of Patches. 2015-11-19 15:26:40 -08:00
Rob Rix
242ca9464b Patch is a Functor. 2015-11-17 18:51:36 -08:00
Rob Rix
da3bf047b1 Patch is algebraic. 2015-11-17 18:44:55 -08:00
Rob Rix
e700c407f2 Move Patch into its file. 2015-11-17 18:23:53 -08:00
Rob Rix
c467437233 Add a file for Patch. 2015-11-17 18:21:51 -08:00