ppx_deriving_madcastversion Documentation on ocaml.org
Library deriving cast functions based on their types.
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")| Tags | syntax |
|---|---|
| Authors | Niols <niols@niols.fr> and Kerl <kerl@wkerl.me> |
| License | LGPL-3.0-only |
| Published | |
| Homepage | https://github.com/Niols/ppx_deriving_madcast |
| Issue Tracker | https://github.com/Niols/ppx_deriving_madcast/issues |
| Maintainer | Niols <niols@niols.fr> |
| Dependencies | |
| Source [http] | https://github.com/Niols/ppx_deriving_madcast/archive/v0.1.tar.gz sha256=520e423e92e776610dba2a3d6e24bc6a5f975930251d45ae8780dd86641051f2 md5=312d4fcb58029810900c50c7cb9cfe69 |
| Edit | https://github.com/ocaml/opam-repository/tree/master/packages/ppx_deriving_madcast/ppx_deriving_madcast.0.1/opam |
No package is dependent


