ucbi / uniform

Write less boilerplate and reuse more code in your portfolio of Elixir apps
https://hex.pm/packages/uniform
Apache License 2.0
33 stars 1 forks source link

Support passing function capture to `modify` #25

Closed paulstatezny closed 2 years ago

paulstatezny commented 2 years ago

Currently, we get this error:

== Compilation error in file lib/base_app/uniform/blueprint.ex ==
** (ArgumentError) cannot inject attribute @modifiers into function/macro because cannot escape #Function<0.51299360/2 in :elixir_compiler_1.__MODULE__/1>. The supported values are: lists, tuples, maps, atoms, numbers, bitstrings, PIDs and remote functions in the format &Mod.fun/arity
paulstatezny commented 2 years ago

Fixed in #26