pub fn definition_type(
    module: &ModulePath,
    purpose: Purpose,
    n: &str,
    d: &Definition
) -> TDefinition