package ppx_compare

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

Install

Dune Dependency

Authors

Maintainers

Sources

ppx_compare-v0.12.0.tar.gz
sha256=48e52ba27b2121923d9d197e991712f3085a45a6417938cd115421b73fa92fec
md5=e50fddd9fd7ece75ec8a861e7c1e7e18

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.