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
Rob Rix
c3cd1edc7d
Add a function which concatenates together HTML lines.
2015-12-02 17:39:46 -05:00
Rob Rix
5523a89eb5
Add a function which appends an element onto the last line of a list of HTML lines.
2015-12-02 17:39:46 -05:00
Rob Rix
0bf32bc50f
Only export split
.
2015-12-02 17:39:46 -05:00
Rob Rix
10e7c748cb
Split <ul> by line.
...
Surely this can’t be this easy.
2015-12-02 17:39:46 -05:00
Rob Rix
8e25d59506
Don’t split <dt>.
2015-12-02 17:39:46 -05:00
Rob Rix
87b86ba817
Split spans into lines.
2015-12-02 17:39:46 -05:00
Rob Rix
7d3542075d
Split text nodes into lines.
2015-12-02 17:39:46 -05:00
Rob Rix
b45b2c62f2
Represent Patch
HTML as Patch
es.
2015-12-02 17:39:46 -05:00
joshvera
33e0b5ac01
++tree-sitter
2015-12-02 14:30:07 -05:00
joshvera
1dd8d93ce1
use fromIntegral
2015-12-02 14:29:19 -05:00
Rob Rix
5bda74b2ea
Disable the warning on name shadowing.
...
Seriously.
2015-12-02 09:30:25 -05:00
Rob Rix
0996c1da5f
Apply a couple of linter-suggested eta reductions.
2015-12-02 09:26:36 -05:00
Rob Rix
0969736753
Infix fmap for reduced chaff.
2015-12-01 16:36:43 -05:00
Rob Rix
d574443969
Split rendering of unpatched leaves.
2015-12-01 16:34:26 -05:00
Rob Rix
5df696bdc1
Use joshvera's fork.
2015-12-01 16:22:11 -05:00
Rob Rix
cdbf2e316f
Merge branch 'master' into split-diffs-in-haskell
2015-12-01 16:18:52 -05:00
Rob Rix
3d291be3d3
Split rendering of keyed terms.
2015-12-01 16:18:49 -05:00
Rob Rix
05c20e8da6
Make a list of map elements.
2015-12-01 16:18:43 -05:00
Rob Rix
cb715cb8ea
Accumulate keyed elements.
2015-12-01 16:18:36 -05:00
Rob Rix
dd5c507f0c
Definition lists contain a list and not a map.
2015-12-01 16:18:19 -05:00
Rob Rix
3daa354cce
Add a term case.
2015-12-01 16:18:08 -05:00
Rob Rix
8387d7bc6e
Split rendering of fixed terms.
2015-12-01 16:07:53 -05:00
Rob Rix
9b1b1b8643
Extract a makeList function for lists.
2015-12-01 16:07:45 -05:00
Rob Rix
453499d4d7
Use subtext
.
2015-12-01 15:57:44 -05:00