package ppx_deriving_hash
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page
[@@deriving hash]
Install
dune-project
Dependency
Authors
Maintainers
Sources
ppx_deriving_hash-0.1.4.tbz
sha256=e44633f43c007455be2a613ef41fa24e9b01bc727db0cb770e16a6833ea82d45
sha512=9abecceb408608c15f601cc99a83412f507dabc7d719f8f3735ee5e7c20c21fa788e0e4d6230a963ae716c61533af0f1aef32b3242ef3b453f130c3ece23465f
Description
Deriver for standard hash functions without extra dependencies.
Added to opam-repository:
README
ppx_deriving_hash
[@@deriving hash]
Deriver for standard hash functions without extra dependencies.
Installation
opam install ppx_deriving_hashUsage
In dune:
(preprocess (pps ppx_deriving_hash))Syntax
- Use
[@@deriving hash]after a type definition to derive the functionval hash: t -> intfor it (if the type is namedt) orval ty_hash: ty -> int(otherwise if the type is namedty). - 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 typety.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page