Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
type error = [
| `Unknown of string
an undiagnosed error
*)| `Unimplemented
operation not yet implemented in the code
*)| `Is_read_only
you cannot write to a read/only instance
*)| `Disconnected
the device has been previously disconnected
*) ]
The type for IO operation errors.
val string_of_error : error -> string
Pretty-print an error value
exception Error of error
An error value wrapped up in an exception
val ok_exn : 'a result -> 'a
Extract an `Ok x
value, or throw an Error
exception
module Monad : sig ... end