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

2722 Commits

Author SHA1 Message Date
Rob Rix
9ac697834e Row is Equatable and can be Shown. 2015-12-03 12:26:25 -05:00
Rob Rix
56a8386473 Append the last on the left to the first on the right. 2015-12-03 12:13:47 -05:00
Rob Rix
9459b28935 Destructure and append the first lines only. 2015-12-03 12:09:28 -05:00
Rob Rix
ea58415617 Test the multiple line cases. 2015-12-03 12:07:03 -05:00
Rob Rix
dc71ae150d Identity case. 2015-12-03 12:03:16 -05:00
Rob Rix
b1c593173f Test that empty lines are the left unit with multiple lines. 2015-12-03 11:58:34 -05:00
Rob Rix
1f6ef522c6 Concatenate lines. 2015-12-03 11:57:13 -05:00
Rob Rix
6d13e98b6a Line is a Monoid. 2015-12-03 11:57:09 -05:00
Rob Rix
8324f3b066 Test that single lines are concatenated. 2015-12-03 11:52:46 -05:00
Rob Rix
6ef2eb89fc Return the current element. 2015-12-03 11:52:02 -05:00
Rob Rix
cfda7c8ff2 Export everything for testing. 2015-12-03 11:50:51 -05:00
Rob Rix
14911bf272 Test that empty lines are the left unit. 2015-12-03 11:47:51 -05:00
Rob Rix
8e66656105 Document adjoinLines a little. 2015-12-03 11:47:42 -05:00
Rob Rix
aa1db29cc7 Stub in a test test of adjoinLines. 2015-12-03 11:44:42 -05:00
Rob Rix
0c34de972b This has to be named Main for now. 2015-12-03 11:44:28 -05:00
Rob Rix
af105ebb88 derive Eq 2015-12-03 11:42:44 -05:00
Rob Rix
9a729a246b Export adjoinLines. 2015-12-03 11:41:15 -05:00
Rob Rix
a90a22e454 Stub in a function to adjoin pairs of lines. 2015-12-03 11:41:02 -05:00
Rob Rix
720c3c0dba Add a Line type. 2015-12-03 11:40:54 -05:00
Rob Rix
659c109c64 Spec! 2015-12-03 11:38:49 -05:00
Rob Rix
950f40693f The tests depend on hspec. 2015-12-03 11:38:43 -05:00
Rob Rix
815494b619 Copy the necessary dependencies into the library. 2015-12-03 11:38:37 -05:00
Rob Rix
bbcb3be6fc Move Split & Unified into the library. 2015-12-03 11:37:18 -05:00
Rob Rix
51db79e961 (Incorrect) rendering of indexed nodes to rows. 2015-12-03 11:36:00 -05:00
Rob Rix
80dcd8efae Return ranges from diffToRows. 2015-12-03 10:50:03 -05:00
Rob Rix
ffcb4d9c98 Zip left/right elements together. 2015-12-03 10:39:48 -05:00
Rob Rix
b075e8b18f Add zipMaybe. 2015-12-03 10:36:17 -05:00
Rob Rix
f8f392262d Collect the left/right elements. 2015-12-03 10:20:02 -05:00
Rob Rix
db0b5eca8f Remove an unused import. 2015-12-03 10:19:24 -05:00
Rob Rix
ba2b58f66b Turn off -Werror.
This apparently controls the severity of assertions from hlint as well,
which was making it difficult to understand what was actually a problem
in the source.
2015-12-03 10:15:00 -05:00
Rob Rix
6a3fc9b6b9 Destructure the annotations. 2015-12-03 10:13:24 -05:00
Rob Rix
7873b0e6f3 Rename freeSyntaxToSplit to annotationAndSyntaxToRows. 2015-12-03 10:09:01 -05:00
Rob Rix
6a05ca0b25 Rename straightToSplit to diffToRows. 2015-12-03 10:07:26 -05:00
Rob Rix
485959b135 Row’s constructor is curried. 2015-12-03 10:06:39 -05:00
Rob Rix
bc57f7f871 Simplify Row to two HTML elements. 2015-12-03 10:05:18 -05:00
Rob Rix
c246b08cf4 Pass the annotations to freeSyntaxToSplit. 2015-12-03 10:03:45 -05:00
Rob Rix
1c55552a1b Delegate free rendering to freeSyntaxToSplit. 2015-12-03 10:02:52 -05:00
Rob Rix
676c5c67ab Compute the rows for free leaves. 2015-12-03 10:02:30 -05:00
Rob Rix
8db4f0f947 Add a Row type. 2015-12-03 10:02:08 -05:00
Rob Rix
f97b2aa8b4 Stub in a function rendering split diffs directly. 2015-12-03 09:10:00 -05:00
Rob Rix
4853095dbd Merge branch 'split-diffs-in-haskell' of https://github.com/github/semantic-diff into split-diffs-in-haskell 2015-12-03 09:05:59 -05:00
joshvera
8438037658 remove uses of lineRange 2015-12-02 21:52:38 -05:00
joshvera
2a063d3277 Move Range to a module 2015-12-02 21:40:34 -05:00
joshvera
d443f6f520 ++tree-sitter 2015-12-02 17:59:27 -05:00
joshvera
1a90240971 ++gitmodules 2015-12-02 17:58:54 -05:00
joshvera
8daeddfae9 ++tree-sitter 2015-12-02 17:56:03 -05:00
joshvera
8c1178a54b ++tree-sitter 2015-12-02 17:42:41 -05:00
Rob Rix
f01cf12567 Rename splitTerm to termToHTML. 2015-12-02 17:39:46 -05:00
Rob Rix
3990324bd0 Concatenate HTML lines in Dl elements. I hope. 2015-12-02 17:39:46 -05:00
Rob Rix
8cbe16883d Concatenate HTML lines in Ul elements. 2015-12-02 17:39:46 -05:00