Module Jsonrpc2.IO

type 'a t = 'a IO_lwt.t
val return : 'a -> 'a t
val failwith : string -> 'a t
val let+ : 'a t -> ('a -> 'b) -> 'b t
val let* : 'a t -> ('a -> 'b t) -> 'b t
val and+ : 'a t -> 'b t -> ('a * 'b) t
type env = IO_lwt.env
type in_channel = IO_lwt.in_channel
type out_channel = IO_lwt.out_channel
val stdin : env -> in_channel
val stdout : env -> out_channel
val read : in_channel -> bytes -> int -> int -> unit t
val read_line : in_channel -> string t
val write : out_channel -> bytes -> int -> int -> unit t
val write_string : out_channel -> string -> unit t
val fail : exn -> Stdlib.Printexc.raw_backtrace -> unit t
val catch : (unit -> 'a t) -> (exn -> Stdlib.Printexc.raw_backtrace -> 'a t) -> 'a t