package safemoney

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

Quotient type

exception CurrencyTypeMismatch of string
type t = {
  1. symbol : string;
  2. value : Q.t;
}
val compare : t -> t -> int
type showable = {
  1. symbol_ : string;
  2. value_ : string;
}
val show_showable : showable -> Ppx_deriving_runtime.string
val showable_to_yojson : showable -> Yojson.Safe.t
val make_qv : (string * Q.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:Q.t -> t
val (/) : t -> Q.t -> t
val to_json : t -> string
OCaml

Innovation. Community. Security.