All notable changes to this project will be documented in this file. (Hopefully I won't forget much.)
- Error message improvements when patterns are used improperly.
0.8.0 - 2022-06-21
- Added
PatternMetonyms.matchv?/2
as an equivalent tomatch?/2
.
- Doc improvements.
0.7.0 - 2022-06-20
- Added
PatternMetonyms.fit/2
as an equivalent to=/2
. - Added
PatternMetonyms.fit/1
to convert=/2
toPatternMetonyms.fit/2
within the do block.
0.6.1 - 2022-05-17
- Now handling equality patterns.
0.6.0 - 2021-11-03
PatternMetonyms.view/2
can now use any function in guards, as long as they returntrue
.- Added
PatternMetonyms.defv/2
to define named functions capable of the same things asPatternMetonyms.view/2
. - Added
PatternMetonyms.fnv/1
do defined anonymous functions capable of the same things asPatternMetonyms.view/2
.
0.5.0 - 2021-10-20
- Implicitly replace patterns defined using no args with patterns defined using an empty list of args.
- Improved the localisation of the pattern mentioned in the error message for patterns that can only be used inside
PatternMetonyms.view/2
. - Breaking : require parentheses on raw views used with
PatternMetonyms.view/2
, and in views used withPatternMetonyms.pattern/1
. - Reworked
PatternMetonyms.view/2
to handle nested pattern usage
0.4.0 - 2021-05-14
- Implementation details, using new dependency: Circe.
- Doc updated.
0.3.1 - 2021-03-11
- Doc updated.
- Anonymous functions can now be used with
PatternMetonyms.view/2
.
0.3.0 - 2020-12-18
- Updated this changelog to try the format from keep-a-changelog.
- Reworked
PatternMetonyms.view/2
to handle remote calls, updated the doc accordingly.
0.2.0 - 2020-12-18
- Docs updated.
- Reorganised the order of the patterns definitions, this allows to set the doc attribute for the version used by the programmer, and to hide the internal version used by
PatternMetonyms.view/2
. - Added a vanilla definition for unidirectional pattern using a view, this permits setting a doc attribute usable by the programmer, improves discoverability, and signal with a better error message when the pattern is improperly used (from unknown definition to custom raise).
- Internal changes.
- Guards can now be used with
PatternMetonyms.view/2
.
0.1.1 - 2020-12-04
PatternMetonyms.view/2
updated to use a unique variable before matching, avoiding repeated function call when it is the value to be matched on.PatternMetonyms.pattern/1
: changed ast traversal from pre to post to avoid infinite loops during compilation (was present but forgotten in the changelog).
- Docs updated.
- Changelog creation.
0.1.0 - 2020-12-03
- Base implementation.
Changelog format inspired by keep-a-changelog.