1
1
mirror of https://github.com/github/semantic.git synced 2024-12-25 07:55:12 +03:00
Commit Graph

5392 Commits

Author SHA1 Message Date
Rob Rix
a2d0e49ec9 Use isOpenLineBy in rightwards row adjoining. 2016-03-07 17:33:53 -05:00
Rob Rix
3d4b832dd4 Use the isOpenLineBy predicate to adjoin lines rightrwards. 2016-03-07 17:31:57 -05:00
Rob Rix
0f604e8d56 🔥 a redundant binding. 2016-03-07 17:31:38 -05:00
Rob Rix
f23e4b7576 Add a convenience to test whether a line is open. 2016-03-07 17:30:50 -05:00
Rob Rix
8f08dab33b Correct row numbering. 2016-03-07 17:13:51 -05:00
Rob Rix
745d9dcea1 Some more hlint advice. 2016-03-07 16:45:38 -05:00
Rob Rix
6fdf98a309 Don’t reverse numbered lines. 2016-03-07 16:44:36 -05:00
Rob Rix
b47bc5bc16 Apply some of hlint’s advice. 2016-03-07 16:33:30 -05:00
Rob Rix
488ec69895 shouldBe gives better error messages. 2016-03-07 16:28:39 -05:00
Rob Rix
bd1a3886a8 Adjoin rows to the right. 2016-03-07 16:26:49 -05:00
Rob Rix
9ec66ca55a That’s not how this works any more. 2016-03-07 16:26:22 -05:00
Rob Rix
cfdbea2fa6 Test the new Row, not later ones. 2016-03-07 16:25:23 -05:00
Rob Rix
976b7cde20 Add a right-associative adjoinRowsBy variant. 2016-03-07 16:20:47 -05:00
Rob Rix
ceccf0acbe Test the current line, not the next one. 2016-03-07 16:12:02 -05:00
Rob Rix
30acf85299 Fold rightwards when adjoining. 2016-03-07 16:09:45 -05:00
Rob Rix
c5708e2843 Add a right-associative adjoinLinesBy variant. 2016-03-07 16:09:22 -05:00
Rob Rix
dd2b6b5532 Fold rightwards through diffs. 2016-03-07 16:05:40 -05:00
Rob Rix
2901586210 Correct some spacing. 2016-03-07 15:54:46 -05:00
Rob Rix
9c926017c5 Fold rightwards through terms. 2016-03-07 15:52:12 -05:00
Rob Rix
4b3bdb184e Adjoin in line. 2016-03-07 15:43:48 -05:00
Rob Rix
3015c409cc 🔥 the nested calls to adjoin.
`adjoinChildLines` & `adjoinChildRows` do this for us.
2016-03-07 15:41:37 -05:00
Rob Rix
6dfb8524ff Generalize coalesceBy to Both (Coalesce a). 2016-03-07 14:32:31 -05:00
Rob Rix
767a9e93fc Add a Coalesce type synonym. 2016-03-07 14:29:06 -05:00
Rob Rix
8595496032 Extract a coalesceBy function taking a coalesce function. 2016-03-07 14:28:17 -05:00
Rob Rix
76ea86d0f4 Extract a mappendBy function taking a coalesce function. 2016-03-07 14:25:23 -05:00
Rob Rix
9e542eb5ee Use unzip instead of this unLeft/unRight applicative stuff. 2016-03-07 14:10:09 -05:00
Rob Rix
26f4b9c26e Expand by the Applicative law. 2016-03-07 14:00:03 -05:00
Rob Rix
d479322560 🔥 wrapRowContents. 2016-03-07 13:58:08 -05:00
Rob Rix
0053558161 Expand wrapRowContents in place. 2016-03-07 13:57:23 -05:00
Rob Rix
289f59d1f9 Merge branch 'master' into data-dot-adjoined 2016-03-07 13:32:14 -05:00
Josh Vera
a2675db76a Merge pull request #498 from github/refactor-alignment
Refactor alignment
2016-03-07 13:25:30 -05:00
Rob Rix
c517b09953 Merge branch 'refactor-alignment' into data-dot-adjoined 2016-03-07 13:18:28 -05:00
Rob Rix
30b3450981 Take hlint’s advice. 2016-03-07 13:14:34 -05:00
Rob Rix
3c3f171c16 Capture the child ranges in a variable. 2016-03-07 13:12:23 -05:00
Rob Rix
c895c001d1 Reformat adjoining across several lines.. 2016-03-07 13:07:19 -05:00
Rob Rix
14ce322cff Both is a PartialSemigroup under a PartialSemigroup which is also a Monoid. 2016-03-07 12:58:15 -05:00
Rob Rix
6bd58e3007 Revert "Stub in a Data.Bifunctor.These module."
This reverts commit 2cb0cce8304de64ebca4b8106dc453bd66fe1c36.
2016-03-07 12:57:12 -05:00
Rob Rix
95de4b23d6 Revert "Add the These type."
This reverts commit 23c0bf34584d3ef626081001e8762f4a98ea706e.
2016-03-07 12:57:09 -05:00
Rob Rix
6fbafa268d Revert "These is an instance of Bifunctor."
This reverts commit e299633535e46af5ca0a6334cdc3891d18fb76b4.
2016-03-07 12:57:06 -05:00
Rob Rix
705b0757ed Revert "Stub in a Data.Align module."
This reverts commit 7e2a1740f7c585cc1ac277c1cd92b333c7c68e34.
2016-03-07 12:57:03 -05:00
Rob Rix
1dfcf8e783 Revert "Add an Align typeclass."
This reverts commit b5e07c617dded12b6cca0e31664c0b12c679da11.
2016-03-07 12:57:00 -05:00
Rob Rix
2b5bd9ea84 Revert "Add an Align instance for lists."
This reverts commit d23ee2e7b622f7310fe80ab571c140dfcf09bc92.
2016-03-07 12:56:58 -05:00
Rob Rix
925a4b9ecf Revert "Align depends on These."
This reverts commit d625441bd8a3e6cbdce561499e4d41c078ebb261.
2016-03-07 12:56:55 -05:00
Rob Rix
ad1fb53de8 Revert "Construct Row from These."
This reverts commit 45f89ad68c0a0a4325a7621e894432413f19c74b.
2016-03-07 12:56:48 -05:00
Rob Rix
cd0a65236a Revert "Eta-reduce align."
This reverts commit be2bea951b9e94567537dc4d5c0d9aa7e8e08d4b.
2016-03-07 12:56:44 -05:00
Rob Rix
ae70cc61c2 Document the Ranges in splitDiffbyLines’ return value. 2016-03-07 12:05:21 -05:00
Rob Rix
7e945dcad2 Eta-reduce align. 2016-03-07 11:19:53 -05:00
Rob Rix
0b0cc2695a Construct Row from These. 2016-03-07 10:51:53 -05:00
Rob Rix
6fbab10fe7 Take hlint’s advice. 2016-03-07 10:50:15 -05:00
Rob Rix
e6a0c8358d Align depends on These. 2016-03-07 09:44:53 -05:00