package ppx_compare

  1. Overview
  2. Docs
Generation of comparison functions from types

Install

Dune Dependency

Authors

Maintainers

Sources

ppx_compare-v0.13.0.tar.gz
sha256=b294c49d896e35aa12e89119c2e76cf9b21aed8e5d21cd40c4b0133512c745c0
md5=17fffade1de8cfe58b768a4b28ba1d3f

doc/ppx_compare.expander/Ppx_compare_expander/Compare/index.html

Module Ppx_compare_expander.Compare

include S

type_ ty is ty -> ty -> result_type where result_type is int for compare and bool for equal.

core_type ty is an expression of type ty -> ty -> result_type

val str_type_decl : loc:Ppxlib.Location.t -> path:string -> (Ppxlib.rec_flag * Ppxlib.type_declaration list) -> Ppxlib.structure
val sig_type_decl : loc:Ppxlib.Location.t -> path:string -> (Ppxlib.rec_flag * Ppxlib.type_declaration list) -> Ppxlib.signature
module Attrs : sig ... end
val str_attributes : Ppxlib.Attribute.packed list
val equal_core_type : Ppxlib.core_type -> Ppxlib.expression

equal_core_type ty is an expression of type ty -> ty -> bool, using the comparison function generated by core_type

OCaml

Innovation. Community. Security.