Skip to content

Instantly share code, notes, and snippets.

@shizzard
Created March 8, 2019 09:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shizzard/28dd1521a6f598aad3660c72cfe65041 to your computer and use it in GitHub Desktop.
Save shizzard/28dd1521a6f598aad3660c72cfe65041 to your computer and use it in GitHub Desktop.
new_spec__() ->
?es:attribute(?es:atom(spec), [
?es:tuple([
?es:tuple([
?es:atom(?cloak_generated_function_new),
?es:integer(?cloak_generated_function_new_arity)
]),
?es:list([
?es:tuple([?es:atom(type), ?es:integer(0), ?es:atom('fun'), ?es:list([
?es:tuple([?es:atom(type), ?es:integer(0), ?es:atom(product), ?es:list([
?es:tuple([?es:atom(type), ?es:integer(0), ?es:atom(term), ?es:list([])])
])]),
?es:tuple([?es:atom(type), ?es:integer(0), ?es:atom(term), ?es:list([])])
])])
])
])
]).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment