Skip to content

Commit

Permalink
fix: replace maybe atom (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
kivra-pergus authored Aug 30, 2024
1 parent a4fe42b commit 92649f3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/greph.erl
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
-type func() :: fun() %
| {atom(), atom()} %Mod:Fun
| mfa(). %
-type graphfun() :: fun((eon:object()) -> maybe(eon:object(), _)). %
-type graphfun() :: fun((eon:object()) -> 'maybe'(eon:object(), _)). %

-record(node,
{ label
Expand All @@ -51,11 +51,11 @@
}).

%%%_ * API -------------------------------------------------------------
-spec compile(graphspec()) -> maybe(graphfun(), _).
-spec compile(graphspec()) -> 'maybe'(graphfun(), _).
compile(Spec) ->
compile(Spec, []).

-spec compile(graphspec(), opts()) -> maybe(graphfun(), _).
-spec compile(graphspec(), opts()) -> 'maybe'(graphfun(), _).
compile(Spec, Opts) ->
?do(?thunk({Spec, Opts}),
fun check/1,
Expand Down

0 comments on commit 92649f3

Please sign in to comment.