Module prelude

Source
Expand description

To use the library, you can simply import the prelude as in:

use ocaml_gen::prelude::*;

Re-exports§

pub use super::Env;

Macros§

decl_fake_generic
Creates a fake generic. This is a necessary hack, at the moment, to declare types (with the decl_type macro) that have generic parameters.
decl_func
Declares the binding for a given function
decl_module
Creates a module
decl_type
Declares the binding for a given type
decl_type_alias
Declares a new OCaml type that is made of other types