浏览代码

unify op / qry types

pull/2/head
istr 11 年前
父节点
当前提交
ee832718cb
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. +3
    -2
      src/glc.erl

+ 3
- 2
src/glc.erl 查看文件

@ -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

正在加载...
取消
保存