package safemoney

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Quotient type functor

exception CurrencyTypeMismatch of string
type t = {
  1. symbol : string;
  2. value : Qv.t;
}
val compare : t Base__Ppx_compare_lib.compare
type showable = {
  1. symbol_ : string;
  2. value_ : string;
}
val showable_to_yojson : showable -> Yojson.Safe.t
val showable_of_yojson : Yojson.Safe.t -> showable Ppx_deriving_yojson_runtime.error_or
val pp_showable : Ppx_deriving_runtime.Format.formatter -> showable -> Ppx_deriving_runtime.unit
val show_showable : showable -> Ppx_deriving_runtime.string
val sexp_of_showable : showable -> Sexplib0.Sexp.t
val showable_of_sexp : Sexplib0.Sexp.t -> showable
val make_qv : (string * Qv.t) -> t
val show_sym : t -> unit
val show_val : t -> unit
val show_t : t -> unit
val neg : t -> t
val abs : t -> t
val (+) : t -> t -> t
val (-) : t -> t -> t
val (*) : t:t -> value:Qv.t -> t
val (/) : t -> Qv.t -> t
val to_showable_json : t -> string
OCaml

Innovation. Community. Security.