package orsetto
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=585297372d7f6cfb830214e9ef22d6d072a39b2a1591ef90f1ee2bcfe144cad3
md5=6bb6a7ba88bf2c7595a0b332921e60b4
doc/orsetto.cf/Cf_relations/index.html
Module Cf_relations
Utility relations.
Overview
This module defines convenient signatures for the useful equality and total ordering relations on a monomorphic type.
module type Order = sig ... end
Module type defining a type t
and a corresponding total ordering function, of the sort generated by Ppx_deriving
, which returns the same value as the standard Pervasives.compare
function.
Use min (module M: Order) a b
to select the minimum of a
and b
according to the total order M
.
Use max (module M: Order) a b
to select the maximum of a
and b
according to the total order M
.
module type Equal = sig ... end
Module type defining a type t
and a corresponding equality relation function, of the sort generated by Ppx_deriving
, which returns the same value as the standard Pervasives.(=)
operator.
module type Std = sig ... end
Module type definining a type t
and the corresponding equality and total ordering relation functions, of the sort generated by Ppx_deriving
, which return the same value as the standard Pervasives.(=)
and Pervasives.compare
functions