1
-module(sample_behaviour).
3
-type custom() :: 1..42.
5
-callback sample_callback_1() -> term().
6
-callback sample_callback_2() -> atom().
7
-callback sample_callback_3() -> {'ok', custom()} | 'fail'.
9
-callback sample_callback_4(term()) -> 'ok'.
10
-callback sample_callback_5(custom()) -> 'ok' | 'fail'.
12
-callback sample_callback_6(custom(), custom(), string()) ->
13
{'ok', custom()} | 'fail'.