package containers

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

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

Parameters

module M : MONAD_IO

Signature

val output : M.output -> 'a t -> 'a -> unit M.t

Output a single value

val printl : M.output -> 'a t -> 'a -> unit M.t

Output a value and add a newline "\n" after.

val fprintf : M.output -> ('a, Buffer.t, unit, unit M.t) Pervasives.format4 -> 'a

Fprintf on a monadic output

OCaml

Innovation. Community. Security.