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

5169 Commits

Author SHA1 Message Date
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
Rob Rix
63782505af Add an Align instance for lists. 2016-03-07 09:42:53 -05:00
Rob Rix
05fa8a6aa5 Add an Align typeclass. 2016-03-07 09:38:13 -05:00
Rob Rix
fb24cc7241 Stub in a Data.Align module. 2016-03-07 09:33:09 -05:00
Rob Rix
25e7dbdbe4 These is an instance of Bifunctor. 2016-03-07 09:31:01 -05:00
Rob Rix
3a38edefd9 Add the These type. 2016-03-07 09:28:47 -05:00
Rob Rix
d78b5e7a7a Stub in a Data.Bifunctor.These module. 2016-03-07 09:28:09 -05:00
Rob Rix
63802d3137 Maybe is a PartialSemigroup under a Monoid. 2016-03-05 01:00:11 -05:00
Rob Rix
4deabf496f Implement Adjoined over Seq. 2016-03-05 00:57:26 -05:00
Rob Rix
ae64b6f930 Define Adjoined over a list. 2016-03-05 00:43:07 -05:00
Rob Rix
afffe77c1d Represent Empty via Maybe. 2016-03-05 00:14:19 -05:00
Rob Rix
4b2c548d32 Defined Adjoined as a binary tree-ish thing. 2016-03-05 00:09:18 -05:00
Rob Rix
b251f1c67d Define Adjoined as an ad hoc list-ish tree thing. 2016-03-04 23:43:33 -05:00