package ppx_deriving_hash
[@@deriving hash]
Install
Dune Dependency
Authors
Maintainers
Sources
ppx_deriving_hash-0.1.2.tbz
sha256=b2cdce00b0fef439b9c2dc20bd0d1248bec2bb4c56ba6c0a98b04a3c387815af
sha512=3bd89f1215439a20aa81f8eae46574d8b80800a059ce4590774616e5ec349f73f010e0126c3390909942f8c5c258b67ab0ef10df7a5084322861a542a4ec8399
README.md.html
ppx_deriving_hash
[@@deriving hash]
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 functionval hash: t -> int
for 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)"
>