Crate purescript_waterslide [−] [src]
This crate defines the types necessary to translate Rust data types to Purescript. Most users
will only need to derive AsPursType
with the purescript_waterslide_derive
crate and use
the purs_module!
macro to generate modules.
Macros
purs_module |
Use this macro to generate purescript modules. It takes a module name (a String) and a comma-separated list of types you want to include in the module. |
Structs
PursConstructor |
Represents a Purescript type name with its parameters and which module it comes from. |
PursModule |
Represents a Purescript module with a name, imports and multiple data types declarations. It is
most easily generated with the |
Enums
PursType |
The representation for a Purescript data type declaration. The |
Traits
AsPursConstructor |
Produce a |
AsPursType |
Struct and enums that implement that trait can be part of generated modules. |