1
1
mirror of https://github.com/github/semantic.git synced 2024-12-24 23:42:31 +03:00
Commit Graph

5522 Commits

Author SHA1 Message Date
Rob Rix
97870a8da1 🔥 isOpenRowBy. 2016-03-09 01:05:38 -05:00
Rob Rix
43ab2d4523 Avoid isOpenRowBy. 2016-03-09 01:05:06 -05:00
Rob Rix
50663cb1a7 🔥 unLeft/unRight. 2016-03-09 01:00:36 -05:00
Rob Rix
b3ec4e771e Unpack the Rows and apply snd. 2016-03-09 01:00:04 -05:00
Rob Rix
ebbf19953e Stop treating EmptyLine as distinct from an empty line. 2016-03-09 00:58:09 -05:00
Rob Rix
df97801db6 Handle the degenerate Nothing/Nothing case explicitly (even tho it’ll never happen). 2016-03-08 23:42:36 -05:00
Rob Rix
32583239a6 Don’t bind a variable we don’t use. 2016-03-08 23:42:23 -05:00
Rob Rix
38a6f52e6b Remove a redundant import. 2016-03-08 23:42:08 -05:00
Rob Rix
50626dc55b Line doesn’t need to wrap a Vector any more. 2016-03-08 23:40:44 -05:00
Rob Rix
9f26748f3b Abstract splitAnnotatedByLines over a makeTerm parameter function. 2016-03-08 23:37:11 -05:00
Rob Rix
7cdc3d8e4a Import Data.List. 2016-03-08 23:24:50 -05:00
Rob Rix
55f2c8d0cf Merge branch 'master' into data-dot-adjoined 2016-03-08 23:21:52 -05:00
Rob Rix
b3db1e2bd0 Don’t reconstruct child ranges unnecessarily. 2016-03-08 23:21:02 -05:00
Rob Rix
1d54d34d77 Move the $ onto the previous line. 2016-03-08 23:01:37 -05:00
Rob Rix
dfedd845b3 Define adjoinLinesBy in terms of coalesceLinesBy. 2016-03-08 22:23:09 -05:00
Rob Rix
3296d4ada1 Document coalesceLinesBy. 2016-03-08 22:20:37 -05:00
Rob Rix
7568a9f014 Move coalesceLinesBy to Line.hs. 2016-03-08 22:20:31 -05:00
Rob Rix
1f6f319842 🔥 isClosedRowBy. 2016-03-08 22:18:19 -05:00
Rob Rix
3cb0cd4ac4 Remove some obsolete tests. 2016-03-08 22:14:22 -05:00
Rob Rix
e63d2b3c59 Correct the openness predicate for ranges. 2016-03-08 22:13:31 -05:00
Rob Rix
89b1b1ff62 Empty lines are open. 2016-03-08 22:12:17 -05:00
Rob Rix
cef2be6495 Correct the predicate. 2016-03-08 22:10:35 -05:00
Rob Rix
0bc811e3c1 Replace MaybeOpen with simple predicates. 2016-03-08 22:07:38 -05:00
Rob Rix
57b2d1f645 Simplify the base case. 2016-03-08 21:57:29 -05:00
Rob Rix
761e5abe93 🔥 the redundant EmptyLine/EmptyLine pattern. 2016-03-08 21:55:14 -05:00
Rob Rix
9195155f9f Simplify adjoinRowsBy to its minimum. 2016-03-08 21:54:23 -05:00
Rob Rix
547750edb9 🔥 the Applicative instance for Row. 2016-03-08 21:53:53 -05:00
Rob Rix
b1cd207a19 Add coalesceLinesBy. 2016-03-08 21:53:45 -05:00
Rob Rix
cca45c8743 Don’t promote empty lines in adjoinLinesBy. 2016-03-08 21:52:25 -05:00
Rob Rix
b6edbcd078 Test that adjoinRowsBy aligns on closed lines. 2016-03-08 21:51:42 -05:00
Rob Rix
000c5ce7a0 Merge pull request #500 from github/add-modes
Add modes to patches
2016-03-08 19:44:27 -05:00
joshvera
146632c2c7 parens 2016-03-08 16:20:17 -05:00
joshvera
8ddc5eb000 Add defaultPlainBlob 2016-03-08 16:05:01 -05:00
joshvera
54c86748ad we just say pure 2016-03-08 16:05:01 -05:00
Rob Rix
de6cb5c097 Spell out the introduction of empty lines. 2016-03-08 15:12:05 -05:00
Rob Rix
4469559744 We don’t need FlexibleInstances any more. 2016-03-08 14:06:34 -05:00
Josh Vera
f6d8db46e8 Merge branch 'master' into add-modes 2016-03-08 13:23:43 -05:00
Rob Rix
acc9bd63a4 🔥 maybeLast. 2016-03-08 12:50:30 -05:00
Rob Rix
b80e58667c Rewrite isOpenLineBy to avoid maybeLast. 2016-03-08 12:50:17 -05:00
Rob Rix
3fdc76167e Remove some redundant parentheses. 2016-03-08 11:44:34 -05:00
Rob Rix
b88c828d9c Remove a redundant case. 2016-03-08 11:44:29 -05:00
Rob Rix
1d99e4f548 🔥 Data.Adjoined. 2016-03-08 10:24:27 -05:00
Rob Rix
5e32c041fb 🔥 the PartialSemigroup/coalesceBy stuff for Both. 2016-03-08 10:24:20 -05:00
Rob Rix
50a99fe500 More predictable test of empty line promotion. 2016-03-08 10:19:05 -05:00
Rob Rix
30d8f05865 We order empty rows slightly differently now. 2016-03-08 10:15:21 -05:00
Rob Rix
0b8cc89ae9 🔥 intersperse and intercalate. 2016-03-07 20:05:50 -05:00
Rob Rix
d4a0e08e79 🔥 the custom Show instances for Row and Line.. 2016-03-07 20:05:43 -05:00
Rob Rix
fe556bf457 🔥 openLineBy. 2016-03-07 20:03:51 -05:00
Rob Rix
c9f5154cc6 Correct the non-promotion test. 2016-03-07 19:56:57 -05:00
Rob Rix
368d943abc Correct the prepending test. 2016-03-07 19:54:55 -05:00