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

3464 Commits

Author SHA1 Message Date
Rob Rix
c0a566be4a Eta-reduce the definition of unchanged. 2015-12-21 13:01:38 -05:00
Rob Rix
3c85d4d0af Use Data.Maybe’s isJust & isNothing to test for open elements. 2015-12-21 13:00:46 -05:00
Rob Rix
64362581c4 Rename adjoinBy → adjoinRowsBy. 2015-12-21 12:57:50 -05:00
Rob Rix
d4cfb276a4 Rename adjoin2By → adjoinBy. 2015-12-21 12:57:11 -05:00
Rob Rix
ed6d6fffa1 Rename adjoin2LinesBy → adjoinLinesBy. 2015-12-21 12:57:04 -05:00
Rob Rix
66376d202a Tighten up the definition of childLines a little. 2015-12-21 12:50:58 -05:00
Rob Rix
cbf334481a Rename lineElements to contextLines. 2015-12-21 12:48:54 -05:00
Rob Rix
3a159f1ae9 rewrapLineContentsIn does not classify terms. 2015-12-21 12:39:36 -05:00
Rob Rix
706e3c499a Generalize numberRows. 2015-12-21 12:35:34 -05:00
Rob Rix
a4d30ec3ff Add an openTerm function. 2015-12-21 12:34:21 -05:00
Rob Rix
7f1079e0ca Document Range. 2015-12-21 12:23:21 -05:00
Rob Rix
1e2c1979ee Document maybeLastIndex. 2015-12-21 12:22:52 -05:00
Rob Rix
e823fb6281 Add a maybeLastIndex function over Range.
This is a better option than making Range Foldable at the moment.
2015-12-21 12:22:20 -05:00
Rob Rix
03fcd99579 Generalize maybeLast to arbitrary Foldable. 2015-12-21 11:50:49 -05:00
Rob Rix
0823ca7f69 Move starts/ends into the where clause. 2015-12-21 11:01:44 -05:00
Rob Rix
b8c21e96af Apply all the linter feedback. 2015-12-21 10:16:42 -05:00
Rob Rix
5f01b38d53 Intercalate! 2015-12-21 10:15:26 -05:00
Rob Rix
058d8d89f9 Use logBase. 2015-12-21 10:14:12 -05:00
Rob Rix
3d17c9a8f0 Use an operator section to avoid some awkwardness. 2015-12-21 10:12:14 -05:00
Rob Rix
09fb6238c4 Remove isChanged. 2015-12-21 10:05:49 -05:00
Rob Rix
4b487669a9 Remove adjoin2. 2015-12-21 10:04:51 -05:00
Rob Rix
446383565c Test adjoin2By. 2015-12-21 10:04:47 -05:00
Rob Rix
9ef0242ac8 Define annotatedToRows in terms of adjoin2By. 2015-12-21 10:04:02 -05:00
Rob Rix
c19dbc27b0 Remove adjoin2Lines. 2015-12-21 10:03:08 -05:00
Rob Rix
422dad44a9 Define termToLines in terms of adjoin2LinesBy. 2015-12-21 10:03:03 -05:00
Rob Rix
e92d4037fd Remove openLine. 2015-12-21 10:01:03 -05:00
Rob Rix
9404ee75c3 Test openLineBy, not openLine. 2015-12-21 10:01:00 -05:00
Rob Rix
c9f13f2f41 Define the arbitrary instances for Row and Line in terms of an Arbitrary type a. 2015-12-21 09:58:20 -05:00
Rob Rix
3424df075a Generalize Line and unLine over a. 2015-12-21 09:58:02 -05:00
Rob Rix
f714e83b62 Define adjoin2 in terms of its generalization over the selection of an open element. 2015-12-21 09:56:33 -05:00
Rob Rix
a9c744a54c Eta-reduce the openLine definition. 2015-12-21 09:54:03 -05:00
Rob Rix
b8e843a505 Spacing. 2015-12-21 09:53:49 -05:00
Rob Rix
4c0b6e9636 Define adjoin2Lines in terms of adjoin2LinesBy. 2015-12-21 09:53:37 -05:00
Rob Rix
05785a0b06 Add a generalization of adjoin2Lines, parameterized by the selection of an open element. 2015-12-21 09:52:57 -05:00
Rob Rix
afafed623c Define openLine in terms of openLineBy. 2015-12-21 09:52:41 -05:00
Rob Rix
3ec55a34a4 Add a generalization of openLine, parameterized by the selection of an open element. 2015-12-21 09:52:27 -05:00
Rob Rix
5089c1d2ed Rename the unLine parameter. 2015-12-18 17:34:08 -05:00
Rob Rix
9ec602ee82 The Show instances are constrained to Show a. 2015-12-18 17:33:45 -05:00
Rob Rix
2ede50401e Constrain the ToMarkup instances to ToMarkup a. 2015-12-18 16:45:06 -05:00
Rob Rix
7964727da6 Add a type parameter to Line. 2015-12-18 16:41:50 -05:00
Rob Rix
eb89e828bb Add a type parameter to Row.
Currently it’s a phantom type.
2015-12-18 16:37:16 -05:00
Rob Rix
c70c14bf1b Remove Debug.Trace. 2015-12-18 16:16:43 -05:00
Rob Rix
7ed7c71a63 🔥 the unused adjoinLines function. 2015-12-18 14:18:21 -05:00
Rob Rix
e8f57d6b27 Remove the redundant test. 2015-12-18 13:58:13 -05:00
Rob Rix
60edfc661a Test promotion through empty lines. 2015-12-18 13:58:02 -05:00
Rob Rix
de456dfe49 Remove the redundant test. 2015-12-18 13:40:54 -05:00
Rob Rix
e1cc29e032 Don’t expect empty rows to be elided. 2015-12-18 13:27:16 -05:00
Rob Rix
bcc7d6d578 Don’t elide empty rows. 2015-12-18 13:27:11 -05:00
Rob Rix
963887a115 Test the property that we don’t promote through empty lines onto closed lines.
This is falsified by empty row elision.
2015-12-18 13:27:03 -05:00
Rob Rix
7e67a6a490 Remove a redundant test. 2015-12-18 13:22:30 -05:00