Преглед изворни кода

expose qry and action types

pull/2/head
istr пре 11 година
родитељ
комит
7b59be96ad
1 измењених фајлова са 5 додато и 2 уклоњено
  1. +5
    -2
      src/glc.erl

+ 5
- 2
src/glc.erl Прегледај датотеку

@ -91,6 +91,11 @@
qtree :: term()
}).
-export_type([qry/0, action/0]).
-type qry() :: {atom(), '*'|false|true|[any(),...]} | {atom(), '<'|'='|'>', _}.
-type action() :: fun((gre:event()) -> any()).
-spec lt(atom(), term()) -> glc_ops:op().
lt(Key, Term) ->
glc_ops:lt(Key, Term).
@ -140,8 +145,6 @@ null(Result) ->
%% Updating the output action of a query finalizes it. Attempting
%% to use a finalized query to construct a new query will result
%% in a `badarg' error.
-type qry() :: {atom(), '*'|false|true|[any(),...]} | {atom(), '<'|'='|'>', _}.
-type action() :: fun((gre:event()) -> any()).
-spec with(Query::qry(), Action::action()) -> {with, Query::qry(), Action::action()}.
with(Query, Action) ->
glc_ops:with(Query, Action).

Loading…
Откажи
Сачувај