package linol

  1. Overview
  2. Docs

Module type Linol.IOSource

Sourcetype 'a t
Sourceval return : 'a -> 'a t
Sourceval failwith : string -> 'a t
Sourceval (let+) : 'a t -> ('a -> 'b) -> 'b t
Sourceval (let*) : 'a t -> ('a -> 'b t) -> 'b t
Sourceval (and+) : 'a t -> 'b t -> ('a * 'b) t
Sourcetype in_channel
Sourcetype out_channel
Sourceval stdin : in_channel
Sourceval stdout : out_channel
Sourceval read : in_channel -> bytes -> int -> int -> unit t
Sourceval read_line : in_channel -> string t
Sourceval write : out_channel -> bytes -> int -> int -> unit t
Sourceval write_string : out_channel -> string -> unit t
Sourceval spawn : (unit -> unit t) -> unit

Spawn a new task that executes concurrently.

Sourceval fail : exn -> unit t
Sourceval catch : (unit -> 'a t) -> (exn -> 'a t) -> 'a t
OCaml

Innovation. Community. Security.