Skip to content

Releases: alexocode/ex_union

v0.1.2 - Include .formatter.exs in the published package

29 Jan 13:21
Compare
Choose a tag to compare

Changed

  • Included .formatter.exs in the published package to enable import_deps: [:ex_union]

v0.1.1 - Resolve dialyzer warnings

16 Nov 17:01
Compare
Choose a tag to compare

Changed

v0.1.0 - Implement the core defunion macro

16 Oct 19:11
Compare
Choose a tag to compare

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