package prbnmcn-dagger

  1. Overview
  2. Docs

Parameters

module M : Intf.Core
module R : sig ... end

Signature

type ('r, 'a) cont = {
  1. cont : 'b. ('a -> 'r -> 'b R.t -> 'b M.t) -> 'r -> 'b R.t -> 'b M.t;
}
type ('r, 'a) m = handler:'r handler -> ('r, 'a M.t) cont
and 'r handler = {
  1. handler : 'a 'b. 'a effect -> ('a M.t -> 'r -> 'b R.t -> 'b M.t) -> 'r -> 'b R.t -> 'b M.t;
}
val return : 'a 'r. 'a -> ('r, 'a) m
val if_ : (handler:'a -> ('b, bool M.t) cont) -> (bool -> handler:'a -> ('b, 'c) cont) -> handler:'a -> ('b, 'c) cont
val map : ('r, 'a) m -> ('a -> 'b) -> ('r, 'b) m
val map2 : ('r, 'a) m -> ('r, 'b) m -> ('a -> 'b -> 'c) -> ('r, 'c) m
val map_array : ('r, 'a) m array -> ('a array -> 'b) -> ('r, 'b) m
val bind : ('r, 'a) m -> ('a -> ('r, 'b) m) -> ('r, 'b) m
val handle : 'a effect -> handler:'b handler -> ('b, 'a M.t) cont
module Infix : sig ... end
OCaml

Innovation. Community. Security.