GuardGen provides macro that can be used as guard test to generate type-checks.
Add GuardGen to your list of dependencies in mix.exs
:
def deps do
[{:guard_gen, "~> 0.1.0"}]
end
Then, update your dependencies.
$ mix deps.get
GuardGen provides macro that can be used as guard test to generates type-checks.
defmodule GuardTest do
import GuardGen
def test(arg) when is_valid(is_atom: arg) do
arg
end
end
List of supported type checks are listed in here.
For full documentation, please consult the online documentation.
All changes are found in CHANGELOG
Information about license is found in LICENSE
Guide to contributing is found in CONTRIBUTING