Skip to content

v0.1.0 - Implement the core defunion macro

Compare
Choose a tag to compare
@sascha-wolf sascha-wolf released this 16 Oct 19:11
· 30 commits to main since this release

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