mirror of
https://github.com/c-cube/ocaml-containers.git
synced 2025-12-06 11:15:31 -05:00
doc
This commit is contained in:
parent
a64d7602a3
commit
b521f3af8e
1 changed files with 10 additions and 0 deletions
|
|
@ -98,3 +98,13 @@ module MakeIO(M : MONAD_IO) : sig
|
|||
val fprintf : M.output -> ('a, Buffer.t, unit, unit M.t) format4 -> 'a
|
||||
(** Fprintf on a monadic output *)
|
||||
end
|
||||
(** Example:
|
||||
{[ module PrintLwt = CCPrint.MakeIO(struct
|
||||
include Lwt
|
||||
type output = Lwt_io.output_channel
|
||||
let write = Lwt_io.write
|
||||
end);;
|
||||
|
||||
PrintLwt.printl Lwt_io.stdout (CCList.pp CCInt.pp) [1;2;3;4];;
|
||||
- : unit Lwt.t
|
||||
]} *)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue