Skip to content

Commit

Permalink
fix issue #80
Browse files Browse the repository at this point in the history
  • Loading branch information
schonfinkel committed Dec 4, 2024
1 parent 1b870b2 commit d91151a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion server/lib/database/src/postgres_m.erl
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,15 @@
% {{ok, any()}, update} |
% {{error, any()}, any()}.

-spec return(X) -> monad:monad(X) when X :: any().
-spec return(X) -> Result
when X :: any(),
Result :: {ok, any()}.
return(X) ->
{ok, X}.

-spec fail(X) -> Result
when X :: any(),
Result :: {error, any()}.
fail(X) ->
{error, X}.

Expand Down

0 comments on commit d91151a

Please sign in to comment.