1
1
mirror of https://github.com/github/semantic.git synced 2024-11-24 08:54:07 +03:00
Commit Graph

6624 Commits

Author SHA1 Message Date
Rob Rix
2801949859 Add a function computing the lines of all children intersecting given ranges. 2016-05-26 14:57:51 -04:00
joshvera
b3842692cd s/return/pure 2016-05-26 14:57:17 -04:00
Rob Rix
e5506b278f advancePast takes a list of lines to advance past. 2016-05-26 14:56:53 -04:00
joshvera
e3559641ff s/headF.runCofree/extract 2016-05-26 14:55:46 -04:00
joshvera
25be443f8a s/free . Pure/pure 2016-05-26 14:54:47 -04:00
joshvera
500b751503 Add use pure and use extract cases to HLint 2016-05-26 14:53:12 -04:00
Rob Rix
d1ccd93002 Extract advancePast to the top level. 2016-05-26 14:49:57 -04:00
joshvera
a2c76a0ddc fmap toCategoryName . toCategory over the head of children 2016-05-26 14:49:47 -04:00
Rob Rix
281b65e70a Extract a function to compute the head ranges of a pair of lists of ranges. 2016-05-26 14:49:41 -04:00
Josh Vera
b735d08c5a Merge branch 'master' into diff-summaries 2016-05-26 14:47:03 -04:00
joshvera
9d9fbe3c37 🔥 annotate and unfix 2016-05-26 14:46:13 -04:00
joshvera
1245f3361a We just say extract 2016-05-26 14:08:26 -04:00
joshvera
aeb747179f Remove Annotated 2016-05-26 14:05:25 -04:00
joshvera
ebd5d20171 Remove duplicate imports 2016-05-26 14:04:27 -04:00
joshvera
b1f9cc4a4a Remove DiffF type synonym 2016-05-26 13:46:33 -04:00
joshvera
2f761fc38b Remove split dependency 2016-05-26 13:44:17 -04:00
joshvera
473ec980b1 Merge remote-tracking branch 'origin/master' into diff-summaries 2016-05-26 13:40:54 -04:00
Rob Rix
3e7982e796 Merge pull request #568 from github/protolude
Use a custom Prelude
2016-05-26 13:24:22 -04:00
Josh Vera
b19b79bfa3 Merge branch 'master' into protolude 2016-05-26 13:14:15 -04:00
joshvera
85553f281c Remove duplicate Prologue import 2016-05-26 13:13:30 -04:00
joshvera
ed144bbb1f Fix tests 2016-05-26 13:11:34 -04:00
joshvera
a962a4e0ff Add some HLint rules as well 2016-05-26 12:58:59 -04:00
joshvera
8180b37285 Use Protolude via the Prologue module and add NoImplicitPrelude 2016-05-26 12:58:04 -04:00
joshvera
adf82ee812 Add NoImplicitPrelude and protolude. Bump lts to 6.0 2016-05-26 11:46:20 -04:00
Rob Rix
8313074e50 Test that we preserve child lines in the output. 2016-05-26 11:39:24 -04:00
joshvera
e027e81f3d Add a Show instance to language 2016-05-26 11:34:02 -04:00
Rob Rix
31519322bc Simplify by 🔥ing the impossible case and making the no-symmetrical-child case a catch-all. 2016-05-26 11:15:28 -04:00
Rob Rix
4985856d39 O(1) concatenation. 2016-05-26 11:05:48 -04:00
Rob Rix
7854e32c51 Unique the keys on both sides.
This avoids false negatives in the tests where, if we generate two
children with the same key, we appear to drop one of the keys.
2016-05-26 10:16:26 -04:00
Rob Rix
07ba502d1d Partition the intersecting children instead of expecting them to be strictly ordered. 2016-05-26 10:11:44 -04:00
Rob Rix
d821349e75 Partition the children instead of expecting them to be strictly ordered. 2016-05-26 10:11:22 -04:00
Rob Rix
b6fcf7c3aa Filter the list of children in lineAndRemainingWhere. 2016-05-26 10:02:14 -04:00
Rob Rix
561f790b12 Move the any back into lineAndRemainingWhere. 2016-05-26 10:02:01 -04:00
Rob Rix
5933a0809d Move branchElementContents into toAlignBranchInputs. 2016-05-26 09:37:06 -04:00
Rob Rix
f48e5c37bc Move alignBranchElement into toAlignBranchInputs. 2016-05-26 09:36:44 -04:00
Rob Rix
6ef8758d7e Add a test case for symmetrical reformatted nodes and context following them. 2016-05-26 09:31:25 -04:00
Rob Rix
3820ab3e66 Filter out bogus empty ranges. 2016-05-25 17:10:38 -04:00
Rob Rix
0025b044f7 Increment the ranges for successive lines. 2016-05-25 17:10:30 -04:00
Rob Rix
b0d154271c Take the actual lines on both sides.
We were getting the wrong ranges.
2016-05-25 17:10:14 -04:00
Rob Rix
5fad7be0f5 🔥 the unused Arbitrary instance over PrettyDiff. 2016-05-25 14:31:47 -04:00
Rob Rix
04e36c4dcb 🔥 alignmentFromBranchElements. 2016-05-25 14:14:38 -04:00
Rob Rix
2ea50d9387 Roll toSourcesAndRanges into toAlignedChildren. 2016-05-25 14:13:27 -04:00
Rob Rix
b4d0749d52 🔥 the top-level bothContents binding. 2016-05-25 13:32:33 -04:00
Rob Rix
eb15740170 Roll toSources into toSourcesAndRanges. 2016-05-25 11:18:49 -04:00
Rob Rix
e5a2c384fc Test that alignBranch covers every line of the input ranges. 2016-05-25 11:13:34 -04:00
Rob Rix
6caf9d3930 Extract alignment from the property test. 2016-05-25 10:59:16 -04:00
Rob Rix
5c1b0809ec Shrink BranchElement by crosswalking. 2016-05-25 10:54:41 -04:00
Rob Rix
5237c7ccc5 Revert "Add a BranchAlignment type."
This reverts commit c85b9fcca08b147c8f2c7bae573f7b30c08f14f4.
2016-05-25 10:43:24 -04:00
Rob Rix
3663cc612b Revert "Add an Arbitrary instance over BranchAlignment."
This reverts commit 17e215b1aec6fdb80212133fe362a9c5120e0b8f.
2016-05-25 10:43:20 -04:00
Rob Rix
e524b4e0fe Revert "Add a Show instance over BranchAlignment."
This reverts commit afd605d4e80d759c8d75b3d912e2e5f36bcc217c.
2016-05-25 10:43:15 -04:00