package ppx_deriving_hash

All checked builds pass
  1. Overview
  2. Docs
[@@deriving hash]

Install

dune-project
 Dependency

Authors

Maintainers

Sources

ppx_deriving_hash-0.1.5.tbz
sha256=ce91e945de78cb332f55be42e5bb8c5e75bc2e13f72f82c4dab4e45b099a694f
sha512=b139cec8f021137b31b02e49f85aaccf28fbddf63b56c2e2651fa7cf433a810186c8372356e02968cbbc35adfc6070a821aece47c57221df127d1346408b0181

Description

Deriver for standard hash functions without extra dependencies.

Added to opam-repository:

README

ppx_deriving_hash

[@@deriving hash]

ci workflow status GitHub release status opam package status

Deriver for standard hash functions without extra dependencies.

Installation

opam install ppx_deriving_hash

Usage

In dune:

(preprocess (pps ppx_deriving_hash))

Syntax

  • Use [@@deriving hash] after a type definition to derive the function val hash: t -> int for it (if the type is named t) or val ty_hash: ty -> int (otherwise if the type is named ty).
  • Use [@hash fun x -> ...] after a type expression to override the underlying hash function used for it.
  • Use [%hash: ty] as an expression for the hash function of type ty.

Dependencies (3)

  1. ppx_deriving >= "6.1.3"
  2. ppxlib >= "0.36.0"
  3. dune >= "3.21"

Dev Dependencies (3)

  1. odoc with-doc
  2. cppo with-test
  3. ounit2 with-test

Optional Dependencies

None

Used by (2)

  1. goblint >= "2.0.0"
  2. soteria

Conflicts

None

Build status

Results of building ppx_deriving_hash with each compiler on check.ci.ocaml.org, run of against opam-repository 8d8d144. All results for this package.

Each result links to its build log. To keep crawlers from overloading the site, build logs require a GitHub sign-in (see ocurrent/opam-health-check). On your first log, GitHub asks you to “Authorize opam-health-check”, the OCurrent app that runs these checks; it sees only your public profile, not your repositories. The sign-in lasts 30 days.

Version OCaml 4.11 OCaml 4.14 OCaml 5.2 OCaml 5.4 OCaml 5.5
0.1.5 (this version) good good good good good
  • good Package successfully built
  • partial One of the dependencies failed to build
  • bad Package failed to build
  • n/a Package is not available in this environment
  • internal Internal failure