Up

Module Syscall_result : module type of Core.Syscall_result with type 'a t = 'a Core.Syscall_result.t

Signature

type 'a t = 'a Core.Syscall_result.t

There is no with sexp_of on purpose as it could only print the 'a value as an integer. Use <:sexp_of< Int.t >> or <:sexp_of< Unit.t >>.

module type S = Core.Syscall_result_intf.S with type 'a syscall_result := 'a t
module Make (M : Arg) () : S with type ok_value := M.t
module Int : S with type ok_value := int
module Unit : S with type ok_value := unit
val create_error : Core.Unix_error.t -> _ t
val unit : Unit.t
val is_ok : _ t -> bool
val is_error : _ t -> bool
val error_exn : _ t -> Core.Unix_error.t
val ignore_ok_value : _ t -> Unit.t

Keep only the error.