Releases: alexocode/ex_union
Releases · alexocode/ex_union
v0.1.2 - Include .formatter.exs in the published package
Changed
- Included
.formatter.exs
in the published package to enableimport_deps: [:ex_union]
v0.1.1 - Resolve dialyzer warnings
Changed
- #2: Resolve dialyzer warnings (@sascha-wolf)
v0.1.0 - Implement the core defunion macro
Added
- Implement the core
ExUnion.defunion
macro and generate a struct for each union case - Accept for type annotations of union case fields and use them to generate
@type
and@spec
annotations - Generate shortcut functions for each union case
- Generate a guard whose name is inferred from the top-level module