1
1
mirror of https://github.com/github/semantic.git synced 2024-12-01 09:15:01 +03:00
Commit Graph

5345 Commits

Author SHA1 Message Date
Rob Rix
df4c94bab9 Correct the insert fixture to not end with a newline. 2016-03-10 01:06:05 -05:00
Rob Rix
a965894d16 Correct the test of aligning closed lines. 2016-03-10 01:04:42 -05:00
Rob Rix
324fcfab31 Correct the test of prepending closed rows. 2016-03-10 01:03:38 -05:00
Rob Rix
893252f3e4 Better docs for rowIncrement. 2016-03-10 00:58:22 -05:00
Rob Rix
ec30936342 Rename rowLength to rowIncrement. 2016-03-10 00:57:47 -05:00
Rob Rix
f2bb06c9c3 Reuse lineIncrement. 2016-03-10 00:56:31 -05:00
Rob Rix
1c9dd2ec50 Document isEmpty. 2016-03-10 00:55:22 -05:00
Rob Rix
aeba0662af Move lineIncrement to Line.hs. 2016-03-10 00:55:03 -05:00
Rob Rix
910e52484f Better docs for lineIncrement. 2016-03-10 00:54:41 -05:00
Rob Rix
1b47c9bd68 Rename lineLength to lineIncrement. 2016-03-10 00:53:58 -05:00
Rob Rix
e46bf1c836 Generalize lineLength over Num. 2016-03-10 00:52:36 -05:00
Rob Rix
b9b7138e1b mappend preserves right-closure. 2016-03-10 00:50:02 -05:00
Rob Rix
1068deaa41 Adjoining constructs Closed lines. 2016-03-10 00:42:22 -05:00
Rob Rix
723eee40f7 Short-circuit the isOpen test for Closed lines. 2016-03-10 00:41:58 -05:00
Rob Rix
c18885af32 Add a Closed case to Line. 2016-03-10 00:39:20 -05:00
Rob Rix
9614994e53 Use the isEmpty predicate to test for line emptiness. 2016-03-10 00:37:21 -05:00
Rob Rix
2ac045aae3 Define an isEmpty predicate for lines. 2016-03-10 00:34:18 -05:00
Rob Rix
734e39d221 Smarter test for emptiness. 2016-03-10 00:30:29 -05:00
Rob Rix
3e7beb2cc4 Define the Monoid instance using unLine. 2016-03-10 00:30:18 -05:00
Rob Rix
428cdc0084 Prefer parens here. 2016-03-10 00:30:10 -05:00
Rob Rix
28b8b9dcb2 Merge branch 'master' into data-dot-adjoined 2016-03-09 22:15:28 -05:00
Rob Rix
b0f3140394 Merge pull request #507 from github/fix-empty-file-additions
Only map SourceBlobs with no mode to empty SourceBlobs
2016-03-09 14:52:26 -05:00
Josh Vera
da332138ec Merge branch 'master' into fix-empty-file-additions 2016-03-09 14:48:08 -05:00
Josh Vera
1ab14bca63 Merge pull request #506 from github/never-say-nothing
Never say nothing
2016-03-09 14:11:59 -05:00
Rob Rix
6d3aa61435 Don’t bind a variable we don’t use. 2016-03-09 14:04:09 -05:00
Rob Rix
0b95412dcb Handle the degenerate Nothing/Nothing case explicitly (even tho it’ll never happen). 2016-03-09 14:03:57 -05:00
Rob Rix
48dd01584b Treat the test inputs & outputs as vendored for linguist’s sake. 2016-03-09 09:57:25 -05:00
Rob Rix
08cc99bc45 We no longer have any Fixtures directories. 2016-03-09 09:57:09 -05:00
Rob Rix
bff4908e16 🔥 Data.Option. 2016-03-09 09:52:53 -05:00
Rob Rix
d87f4e18ea 🔥 adjoinLinesBy. 2016-03-09 09:52:42 -05:00
Rob Rix
223febc052 Add a test of insertions demonstrating that we put the empty line in the right place. 2016-03-09 09:48:10 -05:00
Rob Rix
94aa9be081 🔥 rowRangesBy. 2016-03-09 09:40:06 -05:00
Rob Rix
a50a62d54f Note the alignment function in splitAbstractedTerm’s docs. 2016-03-09 09:36:12 -05:00
Rob Rix
3a28598e86 🔥 a redundant import. 2016-03-09 09:33:14 -05:00
Rob Rix
01afcbf5b4 🔥 splitAnnotatedByLines. 2016-03-09 09:33:08 -05:00
Rob Rix
ec0c1c448e Migrate the splitAnnotatedByLines tests to splitAbstractedTerm. 2016-03-09 09:32:51 -05:00
Rob Rix
be1f548c61 splitDiffByLines uses splitAbstractedTerm. 2016-03-09 09:30:18 -05:00
Rob Rix
402dafa6e3 Constrain the aligning function to Monoids. 2016-03-09 09:30:00 -05:00
Rob Rix
2930a96aed Pointfree. 2016-03-09 09:23:28 -05:00
Rob Rix
129055ea42 Sort keyed nodes with the assistance of an unaligning function. 2016-03-09 05:28:34 -05:00
Rob Rix
55260afb2b Expand the Row type in rowRanges. 2016-03-09 05:24:21 -05:00
Rob Rix
5d150fd816 Abstract splitAbstractedTerm over an alignment function. 2016-03-09 05:02:54 -05:00
Rob Rix
789a7d1be8 Abstract splitAbstractedTerm over an Applicative Traversable Functor. 2016-03-09 04:57:30 -05:00
Rob Rix
2a2e274084 Define splitAbstractedTerm over adjoinChildren. 2016-03-09 04:45:30 -05:00
Rob Rix
1274522dbd The Monoid instance already distributes. 2016-03-09 04:20:43 -05:00
Rob Rix
da0aff3d5f Extract the common construction stuff into a function. 2016-03-09 04:19:09 -05:00
Rob Rix
2acf80d633 Only pass a single constructor in. 2016-03-09 04:17:39 -05:00
Rob Rix
2efbb0f87d Use adjoinRowsBy. 2016-03-09 04:14:31 -05:00
Rob Rix
73aa926bdc Generalize adjoinRowsBy to any Applicative with an aligning function. 2016-03-09 04:13:09 -05:00
Rob Rix
8c36e46452 Expand the Row type synonym in adjoinRowsBy. 2016-03-09 04:09:46 -05:00