hack_parallel

Parallel and shared memory library
Library hack_parallel.hack_core
Module Hack_monad . Make2

Parameters

module M : Basic2

Signature

include Infix2 with type ('a, 'd) t := ( 'a, 'd ) M.t
val (>>=) : ( 'a, 'd ) M.t -> ( 'a -> ( 'b, 'd ) M.t ) -> ( 'b, 'd ) M.t
val (>>|) : ( 'a, 'd ) M.t -> ( 'a -> 'b ) -> ( 'b, 'd ) M.t
module Monad_infix : Infix2 with type ('a, 'd) t := ( 'a, 'd ) M.t
val bind : ( 'a, 'd ) M.t -> ( 'a -> ( 'b, 'd ) M.t ) -> ( 'b, 'd ) M.t
val return : 'a -> ( 'a, _ ) M.t
val map : ( 'a, 'd ) M.t -> f:( 'a -> 'b ) -> ( 'b, 'd ) M.t
val join : ( ( 'a, 'd ) M.t, 'd ) M.t -> ( 'a, 'd ) M.t
val ignore : ( _, 'd ) M.t -> ( unit, 'd ) M.t
val all : ( 'a, 'd ) M.t list -> ( 'a list, 'd ) M.t
val all_ignore : ( unit, 'd ) M.t list -> ( unit, 'd ) M.t