package prbnmcn-dagger

  1. Overview
  2. Docs

Parameters

module M : Intf.Core

Signature

type 'a cont = {
  1. cont : 'b. ('a M.t -> 'b M.t) -> 'b M.t;
}
type 'a m = 'a M.t
type 'a t = handler:handler -> 'a cont
and handler = {
  1. handler : 'a. 'a payload -> 'a cont;
}
and 'a payload =
  1. | Dist of 'a Dist.t m
  2. | Score of 'a m * Log_space.t m
type 'a res = handler:handler -> 'a M.res
val return : 'a -> 'a t
val if_ : (handler:'a -> bool cont) -> (bool -> handler:'a -> 'b cont) -> handler:'a -> 'b cont
val map : 'a t -> ('a -> 'b) -> 'b t
val map2 : 'a t -> 'b t -> ('a -> 'b -> 'c) -> 'c t
val map_array : 'a t array -> ('a array -> 'b) -> 'b t
val bind : 'a t -> ('a -> 'b t) -> 'b t
val log_score : Log_space.t -> unit t
val score : float -> unit t
val map_log_score : 'a. 'a t -> ('a -> Log_space.t) -> 'a t
val map_score : 'a t -> ('a -> float) -> 'a t
val samplei : 'a Dist.t t -> handler:handler -> 'a cont
val sample : 'a Dist.t -> handler:handler -> 'a cont
val run : 'a t -> 'a res
module Infix : sig ... end
OCaml

Innovation. Community. Security.