Commit graph

62 commits

Author SHA1 Message Date
Simon Cruanes
0b0dd83423
reformat all the things 2024-05-13 20:57:53 -04:00
Simon Cruanes
1a23731730
remove conditional over OCaml >= 4.08
in particular, all the let-ops are now unconditional!
2023-06-24 15:22:21 -04:00
Simon Cruanes
10865eaced reformat 2022-07-04 13:36:06 -04:00
Simon Cruanes
0bee9bdd55
wip: remove tests from src/ 2022-06-30 22:28:07 -04:00
Simon Cruanes
5a4adfa76b
fixes, do not run Format tests on < 4.08 2022-03-19 14:13:15 -04:00
Simon Cruanes
0ce613d7c4
gate more code in the version conditional 2022-03-19 13:53:38 -04:00
Simon Cruanes
38552f5c0c
use stag properly, add with_styling.
all tests pass again.
2022-03-19 10:06:08 -04:00
Simon Cruanes
e397d90279
wip: use Stag in Format 2022-03-19 09:40:43 -04:00
Simon Cruanes
dae93cf25f
remove final shims 2022-02-21 22:03:26 -05:00
Simon Cruanes
92aad159c8 add CCFormat.{const_string,opaque} 2021-06-23 14:05:10 -04:00
Simon Cruanes
95e96fb5e1 feat(CCFormat): expose ANSI_codes module 2021-06-04 15:43:59 -04:00
Simon Cruanes
5593e28431 feat(CCFormat): add string_lines combinator 2021-02-26 17:25:33 -05:00
Kye W. Shi
82781aa9c7 CCFormat: List.iter instead of fold_left for append_l (more efficient)
Co-authored-by: Simon Cruanes <simon.cruanes.2007@m4x.org>
2020-12-14 13:36:35 -05:00
Kye Shi
d0b05fdb76 CCFormat: add append, append_l, infix ++ for sequencing 2020-12-14 13:36:35 -05:00
Kye Shi
b1643cfbd5 CCFormat: add space, break, cut aliases 2020-12-14 13:36:35 -05:00
JPR
0a3b04855a ... tweaks 2020-07-02 09:38:25 -05:00
Simon Cruanes
d923795e1a remove slice APIs in string and array 2020-04-24 20:23:26 -04:00
Simon Cruanes
fb6483539e feat(fmt): add exn combinator 2020-03-07 11:26:00 -06:00
Simon Cruanes
1b5b23a8f1 remove unlabel, remove all traces of Result 2019-12-10 20:48:38 -06:00
Simon Cruanes
96ed8a37ab feat: introduce shim modules for 4.08 compat
- also make `unlabel` an explicit operation
- use `Stdlib` instead of `Pervasives`
- remove some warnings in Format
2019-06-14 18:26:14 -05:00
Simon Cruanes
960e704bb1 test: disable labels for tests
necessary for the consistency checks of Label modules
2018-04-08 18:48:54 -05:00
Simon Cruanes
2c5cda7e3d add ?margin parameter to CCFormat.ksprintf 2018-03-09 11:27:11 -06:00
Simon Cruanes
35f9b32a5b add CCFormat.lazy_{or,force} for printing thunks 2018-02-09 14:20:46 -06:00
Simon Cruanes
b3c796176d reindent 2018-02-07 08:22:41 -06:00
nathan moreau
3e2fbce3ee Comments - few changes 2018-02-07 14:36:03 +01:00
Simon Cruanes
24592bf926 CCFormat: fix support of unrecognized styles 2018-02-05 08:58:32 -06:00
Simon Cruanes
3ab9cd58e1 with compat >= 4.02, use Format.pp_print_text directly 2018-02-05 08:56:01 -06:00
Simon Cruanes
858ef0e90f missing extension of Format 2018-01-02 23:39:55 +01:00
Simon Cruanes
aab19f6a50 update headers; reindent 2017-07-04 13:13:24 +02:00
Simon Cruanes
0c7280a8f4 remove test that depends on 4.02 2017-04-18 21:46:38 +02:00
Simon Cruanes
9cca745fcf add CCFormat.text (close #111) 2017-04-18 21:19:50 +02:00
Simon Cruanes
fc6682b1c1 add CCFormat.{newline,substring} 2017-04-18 21:19:37 +02:00
Simon Cruanes
ee69bdcab8 add CCFormat.with_color_ksf for colored printing 2017-04-03 15:32:26 +02:00
Simon Cruanes
97abfe600e use boxes in CCFormat.Dump for tuples 2017-03-14 11:16:11 +01:00
Simon Cruanes
ae6d81a9a4 add CCFormat.of_chan 2017-03-07 09:37:29 +01:00
Simon Cruanes
719d048f57 add CCFormat.flush 2017-03-07 09:36:53 +01:00
Simon Cruanes
03fd42e67d reindentation 2017-01-25 00:08:12 +01:00
Simon Cruanes
8ad0dce97b CCFormat: remove start/stop args, make sep a unit printer 2017-01-24 22:50:26 +01:00
Simon Cruanes
e5adafced6 many improvements to CCFormat
- add `some`
- add `return`
- add `const`
- add `of_to_string`
2017-01-24 22:39:13 +01:00
Simon Cruanes
3f80e794ba add CCFormat.tee 2017-01-11 18:40:07 +01:00
Simon Cruanes
d4d7bc1de2 add CCFormat.Dump.{result,to_string} 2016-11-03 18:11:05 +01:00
Simon Cruanes
af4c3fc195 change boxing in CCFormat.Dump; add example/doc 2016-11-03 15:57:03 +01:00
Simon Cruanes
9045fcca0b add CCFormat.{with_color_sf,fprintf_dyn_color,sprintf_dyn_color}
more dynamic way of adding colors, switching colors on/off, etc.
2016-11-03 15:48:21 +01:00
Simon Cruanes
0d9d17d5db add CCFormat.Dump for easy debugging (see #82) 2016-11-03 15:36:25 +01:00
Simon Cruanes
4ff174ce18 (breaking) make default start/stop arguments empty in printers (#82) 2016-11-03 15:19:50 +01:00
Simon Cruanes
9d9f709600 bugfix in CCFormat.to_file (fd was closed too early) 2016-04-22 14:22:15 +02:00
Simon Cruanes
a9b91943e8 add CCFormat.within 2016-04-06 11:23:21 +02:00
Simon Cruanes
33b61e8bab add CCFormat.{h,v,hov,hv}box printer combinators 2016-02-24 20:01:18 +01:00
Simon Cruanes
34445bead0 replace headers in the rest of containers core 2016-02-20 23:24:24 +01:00
Simon Cruanes
526ea35495 add CCFormat.sprintf_no_color 2016-02-19 16:34:01 +01:00