Haex.Data.DataConstructor (haex v0.0.4) View Source

Builds data constructor modules used to implemente a data type

Link to this section Summary

Link to this section Types

Specs

t() :: %Haex.Data.DataConstructor{
  name: Haex.Data.mod_name(),
  params: [Haex.Data.param()] | Haex.Data.param_keywords(),
  record?: boolean()
}

Link to this section Functions

Link to this function

has_variable?(data_constructor, variable_name)

View Source

Specs

has_variable?(t(), Haex.Data.param_name()) :: boolean()
Link to this function

helper_name(data_constructor)

View Source
Link to this function

type_variables(data_constructor)

View Source

Specs

type_variables(t()) :: [Haex.Data.param()]