Emmanuel Arrighi
35803e586c
CCFormat(fix): restaure the behaviour of CCFormat.opt
2026-02-06 19:42:59 +01:00
Fardale
3516c5dc0e
CCFormat(feat): add option and result, change opt
...
Add CCFormat.option and CCFormat.result as aliases to
Format.pp_print_option and Format.pp_print_result. Make CCFormat.opt an
alias of CCFormat.option, as such this add an optional argument to print
the case "None" but change the default behaviour. Previously, it as
printing "some _" or "none" now it print something only in the case of
"Some x" and just "x".
2026-02-06 10:44:54 +01:00
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
Fardale
0a167dc3dd
doc: remove link to ocaml manual
...
The goal is to use odig to build the documentation and with odig the
comment of the function from the standard library are shown.
2023-02-15 14:32:05 +01:00
Simon Cruanes
10865eaced
reformat
2022-07-04 13:36:06 -04:00
Simon Cruanes
a2a1901630
prepare for 3.7
2022-03-24 13:46:45 -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
Fardale
099f2e176f
chore(doc): adapt module docstring for the index page
2021-11-11 14:40:35 +01:00
Simon Cruanes
aa05f69471
prepare for 3.5
2021-08-04 16:49:29 -04: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
739dd4412c
prepare for 3.3
2021-04-01 22:16:40 -04:00
Simon Cruanes
5593e28431
feat(CCFormat): add string_lines combinator
2021-02-26 17:25:33 -05:00
Simon Cruanes
0097fd3c3d
prepare for 3.2
2021-02-01 10:40:28 -05:00
Kye Shi
78681736cd
CCFormat: add @since tags for space/append/etc.
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
Simon Cruanes
add6a58cf5
prepare for 3.0~rc1
2020-07-28 18:15:05 -04:00
Fardale
8b319edbe1
doc(core): add link to the doc of std module ( #320 )
2020-06-30 17:31:52 +02:00
Simon Cruanes
d923795e1a
remove slice APIs in string and array
2020-04-24 20:23:26 -04:00
JPR
76c1c98bbf
Modifs comments
2020-03-16 15:56:12 -05: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
JPR
1727cc8199
Few Comments corrections
2018-04-08 18:39:23 -05:00
Simon Cruanes
6e50ff41c6
prepare for 2.1
2018-03-28 20:26:17 -05:00
Simon Cruanes
972a6f2720
style: reindent
2018-03-28 19:46:57 -05:00
JPR
2c9ed9c550
Reverting CCFormat.mli comment
2018-03-15 23:09:31 -05:00
JPR
d18d9fb636
Comments - Style & typos fixing
2018-03-15 23:09:31 -05:00
Simon Cruanes
2c5cda7e3d
add ?margin parameter to CCFormat.ksprintf
2018-03-09 11:27:11 -06:00
Simon Cruanes
6b9f39d224
prepare for 2.0
2018-02-11 09:57:06 -06:00
Simon Cruanes
35f9b32a5b
add CCFormat.lazy_{or,force} for printing thunks
2018-02-09 14:20:46 -06:00
nathan moreau
3e2fbce3ee
Comments - few changes
2018-02-07 14:36:03 +01:00
nathan moreau
312901550f
Style - small corrections
2018-02-01 22:22:13 +01:00
nathan moreau
00b2638ae7
Adding more comments
2018-01-30 14:07:05 +01:00
Simon Cruanes
1b9c014e25
use neat trick to alias properly type of Format
2018-01-06 08:24:42 -06:00
Simon Cruanes
a160ae3672
missing type aliases (see #173 )
2018-01-04 08:53:33 -06:00
Simon Cruanes
858ef0e90f
missing extension of Format
2018-01-02 23:39:55 +01:00
Simon Cruanes
d6f7f1570e
prepare for 1.4
2017-10-11 09:29:31 +02:00
Simon Cruanes
d076afc405
fix in doc ( closes #145 )
2017-07-21 15:02:42 +02:00
Simon Cruanes
3ab610ba0e
prepapre for 1.2
2017-05-01 16:59:25 +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
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
5777549c54
prepare for 1.0
2017-02-11 13:56:08 +01:00
Simon Cruanes
56462a862b
Merge branch 'master' into prepare-1.0
2017-01-25 00:15:03 +01:00
Simon Cruanes
03fd42e67d
reindentation
2017-01-25 00:08:12 +01:00