Rob Rix
|
5257089ad4
|
Patches are constructed over Source Char s.
|
2015-12-24 16:37:14 -05:00 |
|
Rob Rix
|
0866ef52bd
|
Merge branch 'diff-performance' into patch
|
2015-12-24 16:33:24 -05:00 |
|
Rob Rix
|
63f08c406c
|
Merge branch 'parse-performance' into diff-performance
|
2015-12-24 10:57:33 -05:00 |
|
Rob Rix
|
dfc5fbee04
|
Merge branch 'split-performance' into parse-performance
# Conflicts:
# src/Range.hs
|
2015-12-24 10:56:51 -05:00 |
|
Rob Rix
|
9fdd72b8c6
|
Optimize maybeLast for vector access.
|
2015-12-24 10:48:58 -05:00 |
|
Rob Rix
|
7a49534034
|
Use makeLine as appropriate in the tests.
|
2015-12-24 10:44:40 -05:00 |
|
Rob Rix
|
c786d2d83d
|
Lines are parameterized by Vectors.
|
2015-12-24 10:41:07 -05:00 |
|
Rob Rix
|
d6faa15321
|
Implement intercalate over Foldables.
|
2015-12-24 10:40:56 -05:00 |
|
Rob Rix
|
2644e8f602
|
Implement intersperse over Foldables.
|
2015-12-24 10:40:47 -05:00 |
|
Rob Rix
|
162f51016e
|
Use makeLine to construct contextLines .
|
2015-12-24 10:38:46 -05:00 |
|
Rob Rix
|
d3e8dd867b
|
Add a makeLine function constructing Lines from lists.
|
2015-12-24 09:53:05 -05:00 |
|
Rob Rix
|
e6e3d9d450
|
classifyMarkup takes the first category if any.
|
2015-12-24 09:51:56 -05:00 |
|
Rob Rix
|
e77b3a8bd4
|
Add maybeFirst over Foldable s.
|
2015-12-24 09:51:47 -05:00 |
|
Rob Rix
|
e1f5986c21
|
Qualify the import of Source with less chaff.
|
2015-12-24 09:51:38 -05:00 |
|
Rob Rix
|
6be93fa749
|
Dollar sign spaceship operator to the rescue.
|
2015-12-24 01:10:17 -05:00 |
|
Rob Rix
|
671ecc2c11
|
Rejigger some parentheses to avoid a $.
|
2015-12-24 01:09:49 -05:00 |
|
Rob Rix
|
56aa250f96
|
Eta-reductions.
|
2015-12-24 01:09:40 -05:00 |
|
Rob Rix
|
d17a44221d
|
Don’t re-sum the costs.
|
2015-12-24 01:08:53 -05:00 |
|
Rob Rix
|
dba213ebfc
|
Remove an unnecessary $.
|
2015-12-24 01:08:23 -05:00 |
|
Rob Rix
|
093fc26d13
|
Use Source.null in the guard.
|
2015-12-24 00:23:36 -05:00 |
|
Rob Rix
|
9343e9d4ae
|
Do all formatting within Source s.
|
2015-12-24 00:20:47 -05:00 |
|
Rob Rix
|
cfeb9e4ee8
|
Move actualLines /actualLineRanges into the Source module.
|
2015-12-24 00:08:17 -05:00 |
|
Rob Rix
|
d355f268e6
|
Hide ++ in the tests.
|
2015-12-23 23:44:02 -05:00 |
|
Rob Rix
|
eb461a3915
|
Concatenate Source s in actualLines .
|
2015-12-23 23:41:31 -05:00 |
|
Rob Rix
|
4395e49104
|
Define Source concatenation.
|
2015-12-23 23:41:08 -05:00 |
|
Rob Rix
|
69aadf4ec5
|
Rename makeSource → fromList .
|
2015-12-23 23:37:51 -05:00 |
|
Rob Rix
|
b138864068
|
Correct the tests.
|
2015-12-23 23:36:49 -05:00 |
|
Rob Rix
|
3ca9064869
|
O(1) indexing.
|
2015-12-23 23:29:27 -05:00 |
|
Rob Rix
|
8a2aca45e1
|
Tacit definition of null .
|
2015-12-23 23:28:13 -05:00 |
|
Rob Rix
|
ad6e7f2ae7
|
Tacit definition of slice.
|
2015-12-23 23:27:07 -05:00 |
|
Rob Rix
|
0bb6462fad
|
Rename unSource to toList.
|
2015-12-23 23:26:37 -05:00 |
|
Rob Rix
|
e4225faa20
|
Rename subsource → slice .
|
2015-12-23 23:25:00 -05:00 |
|
Rob Rix
|
55d3ed38a4
|
A let expression makes more sense.
|
2015-12-23 23:23:16 -05:00 |
|
Rob Rix
|
83173a7b96
|
Fewer parens.
|
2015-12-23 23:22:29 -05:00 |
|
Rob Rix
|
03526754e9
|
subsource uses the correct start/length bounds.
|
2015-12-23 23:21:51 -05:00 |
|
Rob Rix
|
588b1a68ee
|
Avoid most of the conversions into/out of Source.
|
2015-12-23 23:17:35 -05:00 |
|
Rob Rix
|
a19115b267
|
Define break over Source .
|
2015-12-23 23:16:09 -05:00 |
|
Rob Rix
|
b6e05008ec
|
cons over Source .
|
2015-12-23 23:06:49 -05:00 |
|
Rob Rix
|
f89b05bb41
|
Define a getVector function for Source .
|
2015-12-23 23:06:38 -05:00 |
|
Rob Rix
|
ee91b130e4
|
Add API to destructure a Source .
|
2015-12-23 23:05:01 -05:00 |
|
Rob Rix
|
08122476e6
|
Add API to test whether a Source is empty.
|
2015-12-23 23:04:50 -05:00 |
|
Rob Rix
|
f3d65ea6db
|
Define actualLines by means of a single conversion to String.
|
2015-12-23 22:55:44 -05:00 |
|
Rob Rix
|
76f11db98e
|
Define Source over Data.Vector.
|
2015-12-23 22:48:31 -05:00 |
|
Rob Rix
|
e9449fccb8
|
Move Source & its API to the Source module.
|
2015-12-23 22:38:20 -05:00 |
|
Rob Rix
|
cc9dee5704
|
Stub in a Source module.
|
2015-12-23 22:38:02 -05:00 |
|
Rob Rix
|
61eccbcd80
|
Link against vector instead.
|
2015-12-23 22:35:55 -05:00 |
|
Rob Rix
|
d7ad161495
|
Build leaves from the sources on either side.
|
2015-12-23 22:34:27 -05:00 |
|
Rob Rix
|
2e823392d1
|
Filter the strings in the sources.
|
2015-12-23 22:30:11 -05:00 |
|
Rob Rix
|
f1ab391423
|
arbitraryLeaf produces a Source.
|
2015-12-23 22:27:48 -05:00 |
|
Rob Rix
|
5e8e9bda5f
|
Construct leaves with subsources.
|
2015-12-23 22:27:42 -05:00 |
|