Macro purescript_waterslide::purs_module [] [src]

macro_rules! purs_module {
    ( $name:expr ; $( $p:path ),* ) => { ... };
}

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.

purs_module!("Data.Pasta.Ingredients".to_string() ; TomatoSauce, OliveOil, Spinach, Sauce<void::Void>, Butter);

Note the usage of the Void type from the void crate as a type argument. Since the type arguments are not used when deriving AsPursType, any other type should work here.