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.5.tbz
sha256=ce91e945de78cb332f55be42e5bb8c5e75bc2e13f72f82c4dab4e45b099a694f
sha512=b139cec8f021137b31b02e49f85aaccf28fbddf63b56c2e2651fa7cf433a810186c8372356e02968cbbc35adfc6070a821aece47c57221df127d1346408b0181
doc/README.html
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