module Sexp:sig
..end
no_raise
is the identity, but by using 'a no_raise
in a sexpable type, the
resulting use sexp_of_no_raise
protects the conversion of 'a
to a sexp so that if
it fails, one gets a sexp with an error message about the failure, rather than an
exception being raised.
The resulting no_raise_of_sexp
can still raise.
include Sexpable
include Stringable
include Binable
include Sexp_intf.S
val of_int_style : [ `No_underscores | `Underscores ] Pervasives.ref
type'a
no_raise ='a
no_raise
is the identity, but by using 'a no_raise
in a sexpable type, the
resulting use sexp_of_no_raise
protects the conversion of 'a
to a sexp so that if
it fails, one gets a sexp with an error message about the failure, rather than an
exception being raised.
The resulting no_raise_of_sexp
can still raise.
val sexp_of_no_raise : ('a -> Sexplib.Sexp.t) -> 'a no_raise -> Sexplib.Sexp.t
val no_raise_of_sexp : (Sexplib.Sexp.t -> 'a) -> Sexplib.Sexp.t -> 'a no_raise
val bin_size_no_raise : 'a Bin_prot.Size.sizer -> 'a no_raise Bin_prot.Size.sizer
val bin_write_no_raise : 'a Bin_prot.Unsafe_write_c.writer ->
'a no_raise Bin_prot.Write_ml.writer
val bin_write_no_raise_ : 'a Bin_prot.Unsafe_write_c.writer ->
'a no_raise Bin_prot.Unsafe_write_c.writer
val bin_writer_no_raise : 'a Bin_prot.Type_class.writer ->
'a no_raise Bin_prot.Type_class.writer
val bin_read_no_raise : 'a Bin_prot.Unsafe_read_c.reader ->
'a no_raise Bin_prot.Read_ml.reader
val bin_read_no_raise_ : 'a Bin_prot.Unsafe_read_c.reader ->
'a no_raise Bin_prot.Unsafe_read_c.reader
val bin_read_no_raise__ : 'a Bin_prot.Unsafe_read_c.reader ->
(int -> 'a no_raise) Bin_prot.Unsafe_read_c.reader
val bin_reader_no_raise : 'a Bin_prot.Type_class.reader ->
'a no_raise Bin_prot.Type_class.reader
val bin_no_raise : 'a Bin_prot.Type_class.t -> 'a no_raise Bin_prot.Type_class.t
module Sexp_option:sig
..end
module Sexp_list:sig
..end
module Sexp_array:sig
..end
module Sexp_opaque:sig
..end
module Sexp_maybe:sig
..end