NoahBatchelor
e933995733
Kleisli Composition Operator and Apply_or Added ( #455 )
...
Added the Kleisli composition operator for Option, Result, and CCFun.
2024-07-19 14:03:52 -04: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
Simon Cruanes
bbfbe0f770
fix many, many warnings
2023-06-06 22:16:20 -04:00
Fardale
4e2f9220dd
doc: add details to CCResult.of_opt
2022-08-05 21:38:22 +02: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
b837509de9
remove many more shims
2022-02-21 21:52:06 -05:00
Ewen Maclean
4e79b72306
adding opt_map to simplify result function application over optionals ( #397 )
...
adding `Result.opt_map` to simplify result function application over optionals
2022-01-25 15:05:11 -05:00
Fardale
a5822f7273
doc: inline the doc of CCShim*_ module in the doc
2021-11-12 17:34:06 +01:00
Fardale
099f2e176f
chore(doc): adapt module docstring for the index page
2021-11-11 14:40:35 +01:00
Fardale
302dba6cb5
chore(CCOption): rename CCOpt to CCOption and deprecate CCOpt
...
In the stdlib the module associated with the option type is called
Option and in containers it was called CCOpt. Renaming CCOpt to CCOption
make the name of containers module uniforme with respect to the stdlib.
2021-09-22 23:07:05 +02:00
Simon Cruanes
add6a58cf5
prepare for 3.0~rc1
2020-07-28 18:15:05 -04:00
Fardale
8c3d716ab1
break: rename fonction from *std_seq* to *seq*
2020-07-23 16:32:52 +02:00
Simon Cruanes
8b41a2bf69
doc: add missing @since
2020-07-22 17:08:48 -04:00
Kye W. Shi
3bae829558
CCResult: add <$> operator
2020-07-22 16:23:04 -04:00
JPR
0a3b04855a
... tweaks
2020-07-02 09:38:25 -05:00
Simon Cruanes
5dd90edafa
add CCResult.get_lazy
2020-05-21 15:26:27 -04:00
Simon Cruanes
a767e4618d
wip(3.0): remove deprecated functions, in particular sequence
2020-04-24 20:16:53 -04:00
Fardale
d1a5e047fe
feat(CCResult): add get_lazy
...
fixes #285
2020-01-24 22:57:25 +01:00
Simon Cruanes
5126973173
prepare for 2.8
2019-12-14 17:50:35 -06:00
Simon Cruanes
ab494fb753
fix: compat issue
2019-12-14 17:50:35 -06:00
Simon Cruanes
138047ef11
feat: add {to,of,add}_{iter,std_seq} where relevant; deprecations
...
deprecate `seq` named functions (for `iter`)
deprecate klist functions (for `std_seq`)
close #231
2019-12-14 16:29:07 -06:00
Simon Cruanes
b2d9e69042
feat: put the let operators inside the Infix modules when relevant
2019-12-14 12:08:48 -06:00
Simon Cruanes
bf0227d404
feat: on 4.08, support let operators
...
close #276
2019-12-14 12:08:48 -06:00
Simon Cruanes
1b5b23a8f1
remove unlabel, remove all traces of Result
2019-12-10 20:48:38 -06:00
Simon Cruanes
7cefde490b
prepare for 2.7
...
remove mdx
2019-11-12 08:49:33 -06:00
Simon Cruanes
df9bbb8746
add Result.flatten_l to turn a list of results into a result of list
2019-10-16 12:22:55 -05:00
Simon Cruanes
d0f0bf7024
doc: small fix
2018-12-21 17:47:35 -06:00
Simon Cruanes
91adde9743
minor fix
2018-12-21 09:44:28 -06:00
Fardale
23d7ea20f6
[WIP] Work on documentation ( #242 )
...
`CCResult` add doc for map_l
2018-12-21 15:43:36 +00:00
Simon Cruanes
197b4e7f1b
prepare for 2.4
2018-11-30 10:40:13 -06:00
Nathan Rebours
29a75daac1
Add CCResult.iter_err
...
Closes #238
2018-11-19 17:17:26 +00:00
Hongchang Wu
e8617c4f05
Add CCResult.get_or_failwith
2018-10-05 00:55:32 -05:00
Simon Cruanes
f7d5177540
chore(doc): update ocamldoc markup to remove odoc warnings
2018-03-30 01:49:38 -05:00
Simon Cruanes
fe23cb496c
fix: strong type aliases in Random ( closes #210 )
2018-03-26 11:35:31 -05:00
Simon Cruanes
ddf709fc5b
reindent code
2018-02-01 19:01:32 -06:00
nathan moreau
00b2638ae7
Adding more comments
2018-01-30 14:07:05 +01:00
Jacques-Pascal Deplaix
9622f6f6ff
Avoid uses of the polymorphic operators
2018-01-14 23:32:13 +00:00
Simon Cruanes
18c9f88411
prepare for 1.5
2018-01-02 18:14:32 +01:00
Simon Cruanes
632526e407
improve compatibility with the stdlib
2017-12-15 09:49:54 +01:00
Simon Cruanes
3ab610ba0e
prepapre for 1.2
2017-05-01 16:59:25 +02:00
Simon Cruanes
af6cd08ff4
fix too restrictive type in CCResult
2017-04-13 15:23:22 +02:00
Simon Cruanes
02b2a21e33
add CCResult.fold_ok ( closes #107 )
2017-04-05 10:43:37 +02:00
Simon Cruanes
f27f7757de
add CCResult.add_ctx{,f} for replacing stack traces
2017-03-27 22:06:37 +02:00
Simon Cruanes
5777549c54
prepare for 1.0
2017-02-11 13:56:08 +01:00
orbitz
13888edb4d
Add is_ok and is_error, simple predicates for testing a result. This is useful for tests or asserts
2017-01-17 20:09:26 +01:00
Simon Cruanes
13b283a91d
remove buffer printers, rename pretty-printers to pp
2016-11-03 18:24:11 +01:00
Roma Sokolov
d4d22b1488
Fixes map_or
...
~default arg for `map_or`, as well as function, should not depend on the type of error case.
2016-10-04 14:27:34 +03:00
Simon Cruanes
913cfcacea
prepare for 0.19
2016-08-22 09:58:09 +02:00