package ppx_deriving_madcast
Library deriving cast functions based on their types
Install
Authors
Maintainers
Sources
v0.2.tar.gz
md5=bca83dbf5a6fb47ced07756c6cab1d9a
sha512=f2f604685649d8fc0c750adfb89d997ea62f2fd09f383dc38b4580fdbb7f96e45a637745f1f06aa1b529d6abcfea6691ef309eb32e423c780c2370aff4678950
Description
This package provides a PPX that allows to derive cast functions based on their types.
For instance, [%madcast: ('a * string) -> ('a * int)]
would be replaced by:
fun (x, y) ->
(x,
try int_of_string y
with Failure _ -> failwith "madcast: string -> int")
Dependencies (4)
-
ppxlib
>= "0.15.0"
-
ppx_deriving
>= "5.0"
- ocaml
-
dune
>= "2.5"
Dev Dependencies (1)
-
odoc
with-test
Used by
Conflicts
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page