TypeClass v1.0.0-alpha4 TypeClass.Utility.Attribute

Helpers to module attributes

Summary

Macros

Retrieve the compile-time value stored at the specified attribute key

Set up a compile time attribute key for getting and setting

Set a compile-time module attribute

Macros

get(attribute)
get(term, atom) :: any

Retrieve the compile-time value stored at the specified attribute key

register(attribute, opts \\ [])
register(term, atom, []) :: no_return

Set up a compile time attribute key for getting and setting

set(value, list)
set(term, atom, [{:as, atom}]) :: no_return

Set a compile-time module attribute