Skip to content

Instantly share code, notes, and snippets.

Created January 14, 2015 21:47
Show Gist options
  • Save anonymous/c5ea1bc645fe94248615 to your computer and use it in GitHub Desktop.
Save anonymous/c5ea1bc645fe94248615 to your computer and use it in GitHub Desktop.
-module(my_behaviour)
-export_type([my_data_type/1]).
-type my_data_type() :: term().
-callback my_custom_function() -> my_data_type().
-module(my_impl)
-behaviour(my_behaviour)
-record(my_record, {}).
-spec my_custom_function() -> #my_record{}.
my_custom_function() ->
#my_record{}.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment