Integration_test_lib.Malleable_errorThe is a monad which is conceptually similar to `Deferred.Or_error.t`, * except that there are 2 types of errors which can be returned at each bind * point in a computation: soft errors, and hard errors. Soft errors do not * effect the control flow of the monad, and are instead accumulated for later * extraction. Hard errors effect the control flow of the monad in the same * way an `Error` constructor for `Or_error.t` would. It remains similar to Deferred.Or_error.t in that it is a specialization of Deferred.Result.t
module Error_accumulator = Test_error.Error_accumulatormodule Hard_fail : sig ... endmodule Result_accumulator : sig ... endtype 'a t =
( 'a Result_accumulator.t, Hard_fail.t ) Async_kernel.Deferred.Result.tmodule T : sig ... endinclude module type of struct include T endmodule Monad_infix = T.Monad_infixval return : 'a -> 'a0 tmodule Let_syntax = T.Let_syntaxval lift :
'a Async_kernel.Deferred.t ->
( 'b Result_accumulator.t, Hard_fail.t ) Core_kernel.Result.t
Async_kernel.Deferred.tval soft_error :
value:'a ->
Core.Error.t ->
( 'b Result_accumulator.t, 'c ) Core_kernel.Result.t Async_kernel.Deferred.tval hard_error :
?exit_code:int ->
Core.Error.t ->
( 'a, Hard_fail.t ) Core_kernel.Result.t Async_kernel.Deferred.tval contextualize :
Core.String.Map.Key.t ->
( 'a Result_accumulator.t, Hard_fail.t ) Core_kernel._result
Async_kernel__Deferred.t ->
( 'a Result_accumulator.t, Hard_fail.t ) Core_kernel._result
Async_kernel__Deferred.tval soften_error :
( unit Result_accumulator.t, Hard_fail.t ) Core_kernel._result
Async_kernel__Deferred.t ->
( unit Result_accumulator.t, 'a ) Core_kernel._result
Async_kernel__Deferred.tval is_ok : ( 'a Result_accumulator.t, 'b ) Core_kernel._result -> boolval ok_unit : unit tval ok_if_true :
?error_type:[< `Hard | `Soft Hard ] ->
error:Core.Error.t ->
bool ->
( unit Result_accumulator.t, Hard_fail.t ) Core_kernel.Result.t
Async_kernel.Deferred.tval or_soft_error :
value:'a ->
( 'b, Core.Error.t ) Core_kernel._result ->
'c tval soft_error_string :
value:'a ->
string ->
( 'b Result_accumulator.t, 'c ) Core_kernel.Result.t Async_kernel.Deferred.tval soft_error_format :
value:'a ->
( 'b,
unit,
string,
( 'c Result_accumulator.t, 'd ) Core_kernel.Result.t
Async_kernel.Deferred.t )
Stdlib.format4 ->
'eval or_hard_error :
?exit_code:int ->
( 'a, Core.Error.t ) Core_kernel._result ->
'b tval hard_error_string :
?exit_code:int ->
string ->
( 'a, Hard_fail.t ) Core_kernel.Result.t Async_kernel.Deferred.tval hard_error_format :
?exit_code:int ->
( 'a,
unit,
string,
( 'b, Hard_fail.t ) Core_kernel.Result.t Async_kernel.Deferred.t )
Stdlib.format4 ->
'cval lift_error_set :
'a t ->
( 'a0 * Test_error.internal_error Test_error.Set.t,
Test_error.internal_error Test_error.Set.t )
Async_kernel.Deferred.Result.tval lift_error_set_unit :
unit t ->
Test_error.internal_error Test_error.Set.t Async_kernel.Deferred.tmodule List : sig ... end