Ver código fonte

unify op / qry types

pull/2/head
istr 11 anos atrás
pai
commit
ee832718cb
1 arquivos alterados com 3 adições e 2 exclusões
  1. +3
    -2
      src/glc.erl

+ 3
- 2
src/glc.erl Ver arquivo

@ -93,7 +93,8 @@
-export_type([qry/0, action/0]).
-type qry() :: {atom(), '*'|false|true|[any(),...]} | {atom(), '<'|'='|'>', _}.
%-type qry() :: {atom(), '*'|false|true|[any(),...]} | {atom(), '<'|'='|'>', _}.
-type qry() :: glc_ops:op().
-type action() :: fun((gre:event()) -> any()).
-spec lt(atom(), term()) -> glc_ops:op().
@ -170,7 +171,7 @@ union(Queries) ->
%% On success the module representing the query is returned. The module and
%% data associated with the query must be released using the {@link delete/1}
%% function. The name of the query module is expected to be unique.
-spec compile(atom(), list()) -> {ok, atom()}.
-spec compile(Module :: atom(), Query :: qry()) -> {ok, atom()}.
compile(Module, Query) ->
{ok, ModuleData} = module_data(Query),
case glc_code:compile(Module, ModuleData) of

Carregando…
Cancelar
Salvar