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

117 Commits

Author SHA1 Message Date
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
ec7bd00cca Remove unused import 2016-08-24 14:07:52 -04:00
joshvera
9443a7a141 Remove duplicate ToJSON instance 2016-08-22 10:32:33 -04:00
joshvera
7541160bc3 WIP 2016-08-21 21:51:48 -04:00
Rob Rix
50c9d37cb1 Placate hlint. 2016-07-13 15:33:53 -04:00
Rob Rix
45b0571221 Add an Arbitrary instance over Range. 2016-07-13 15:33:44 -04:00
Rob Rix
a6eace739c Section header for instances. 2016-07-13 15:31:09 -04:00
Rob Rix
7802d4916c 🔥 FlexibleInstances & RecordWildCards pragmas. 2016-06-03 16:02:06 -04:00
Rob Rix
ee0bfac0a9 Simplify the range intersection test. 2016-06-01 20:52:24 -04:00
Rob Rix
e1680f85b0 Revert "Revert "Revert "Correct the computation of range intersection."""
This reverts commit d90ebc2d0bc2fdca281b827c903086be1f7abdbd.
2016-05-27 14:33:57 -04:00
Rob Rix
81fd09ae25 Revert "Revert "Correct the computation of range intersection.""
This reverts commit 02bcb272e36a62a90c099af22add47c69160e941.
2016-05-27 14:27:50 -04:00
Rob Rix
1cb7946cb0 Revert "Correct the computation of range intersection."
This reverts commit 988914aefb3a89676cecbbe1654370c08f886be0.
2016-05-27 14:24:36 -04:00
Rob Rix
835f38bdf8 Correct the computation of range intersection. 2016-05-27 14:22:45 -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
8180b37285 Use Protolude via the Prologue module and add NoImplicitPrelude 2016-05-26 12:58:04 -04:00
Rob Rix
eeab8580ff < != > 2016-05-17 15:57:18 -04:00
Rob Rix
0b45e06c91 Implement intersectsRange in terms of intersectionRange (i.e. correctly). 2016-05-17 15:31:46 -04:00
Rob Rix
d4618e486c Compute the intersection of two ranges. 2016-05-17 15:20:51 -04:00
Rob Rix
2ca1caaa98 Replace Data.Option with a dependency on semigroups. 2016-04-15 12:20:27 -04:00
Rob Rix
92b4fcba1b 📝 intersectsRange. 2016-04-15 09:34:58 -04:00
Rob Rix
012425b11a Move intersectsRange to Range. 2016-04-15 09:34:34 -04:00
Rob Rix
4d25c23618 🔥 offsetRange. 2016-03-09 01:52:45 -05:00
Rob Rix
2b231edab4 🔥 substring. 2016-03-09 01:52:20 -05:00
Rob Rix
471449985a 🔥 sublist. 2016-03-09 01:51:39 -05:00
Rob Rix
67fd5c3da4 Generalize totalRange to arbitrary Foldables. 2016-03-09 01:43:22 -05:00
Rob Rix
78aeffde06 Remove the Functor constraint from unionRanges. 2016-03-04 20:10:45 -05:00
Rob Rix
9529d3aab0 Revert "Add a maybeUnionRanges function."
This reverts commit 183d77173ea6a9250092710996c066d3af19d816.
2016-03-04 20:08:10 -05:00
Rob Rix
e1ea26206a Revert "Document maybeUnionRanges."
This reverts commit 25dc580212e0c8f6964208b828771fba767933b9.
2016-03-04 20:08:07 -05:00
Rob Rix
650663c83f Revert "Simplify maybeUnionRanges."
This reverts commit 62e79ec5206aa8d07984927f60c0367f3e7aac13.
2016-03-04 20:08:04 -05:00
Rob Rix
d9e74e1f55 Revert "Define maybeUnionRanges as a specialization of maybeConcat."
This reverts commit 3210ab6fe6e660106c3c2e1ae92af733ed27c5b0.
2016-03-04 20:07:59 -05:00
Rob Rix
8325042643 Define unionRangesFrom with maybeConcat. 2016-03-04 20:07:52 -05:00
Rob Rix
2ca378db0d Define maybeUnionRanges as a specialization of maybeConcat. 2016-03-04 20:07:04 -05:00
Rob Rix
6b17c3c1ff Simplify maybeUnionRanges. 2016-03-04 20:03:37 -05:00
Rob Rix
aea8e3e200 Document maybeUnionRanges. 2016-03-04 20:00:01 -05:00
Rob Rix
34e798cb09 Add a maybeUnionRanges function. 2016-03-04 19:59:31 -05:00
Rob Rix
3716048394 Define unionRanges in terms of unionRangesFrom. 2016-03-03 16:00:07 -05:00
Rob Rix
8637d6d384 Add a unionRangesFrom function taking a default Range. 2016-03-03 15:59:40 -05:00
Rob Rix
cf8673b14f Correct the docs of unionRanges. 2016-03-03 15:58:48 -05:00
Rob Rix
9981e98a77 Revert "Move safeRange into the Range module."
This reverts commit 781f940cad93db3954ddb9f2ddd9de23c432a68f.
2016-03-03 10:42:03 -05:00
Rob Rix
e630169833 Move safeRange into the Range module. 2016-03-02 18:54:12 -05:00
Rob Rix
9108b56e4f Add a rangeAt function to construct a Range at an index. 2016-02-29 10:00:02 -05:00
Rob Rix
c033182e5f Replace the Semigroup instance with a Monoid instance over Data.Option. 2016-02-26 19:55:14 -05:00
Matt Diephouse
5eb6ea0996 Document the declarations in Range.hs 2016-01-13 14:38:57 -05:00
Matt Diephouse
75e4f2b7bd Merge match, parse, and recurse into a single function 2016-01-13 14:06:59 -05:00
Matt Diephouse
52a8661390 Swap parameter order and eta reduce 2016-01-13 14:00:57 -05:00
Matt Diephouse
6f882be685 Extract the recursion into a function 2016-01-13 13:57:28 -05:00
Matt Diephouse
bc95741b0d Swap parameter order and eta reduce 2016-01-13 13:55:09 -05:00
Matt Diephouse
58b4e8a985 Extract saving of a word 2016-01-13 13:54:49 -05:00