Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make include paths relative to fix compilation under hex #210

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,24 @@ missing some parts. The implementation plan is on a demand driven
basis for Shopgun currently, in that we tend to implement things when
there is a need for them.

# Installation

This package is also available in Hex as [graphql_erl](https://hex.pm/packages/graphql_erl).

## Elixir

Add `graphql_erl` to your list of dependencies in `mix.exs`:

```elixir
def deps do
[
{:graphql_erl, "~> 0.16.0"}
]
end
```

To use it, call `:graphql_erl.parse(query)` etc.

# Documentation

This is a big library. In order to ease development, we have provided
Expand Down
2 changes: 1 addition & 1 deletion src/graphql.erl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
-module(graphql).

-include_lib("graphql/include/graphql.hrl").
-include_lib("../include/graphql.hrl").
-include("graphql_internal.hrl").
-include("graphql_schema.hrl").

Expand Down
2 changes: 1 addition & 1 deletion src/graphql_ast.erl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
-module(graphql_ast).

-include_lib("graphql/include/graphql.hrl").
-include_lib("../include/graphql.hrl").
-include("graphql_internal.hrl").
-include("graphql_schema.hrl").

Expand Down
2 changes: 1 addition & 1 deletion src/graphql_check.erl
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
%%% @end
-module(graphql_check).

-include_lib("graphql/include/graphql.hrl").
-include_lib("../include/graphql.hrl").
-include("graphql_internal.hrl").
-include("graphql_schema.hrl").

Expand Down
2 changes: 1 addition & 1 deletion src/graphql_err.erl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
-module(graphql_err).

-include_lib("graphql/include/graphql.hrl").
-include_lib("../include/graphql.hrl").
-include("graphql_internal.hrl").
-include("graphql_schema.hrl").

Expand Down
2 changes: 1 addition & 1 deletion src/graphql_execute.erl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
-module(graphql_execute).

-include_lib("graphql/include/graphql.hrl").
-include_lib("../include/graphql.hrl").
-include("graphql_internal.hrl").
-include("graphql_schema.hrl").

Expand Down
2 changes: 1 addition & 1 deletion src/graphql_introspection.erl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
-module(graphql_introspection).

-include("graphql_schema.hrl").
-include_lib("graphql/include/graphql.hrl").
-include_lib("../include/graphql.hrl").

-export([inject/0, augment_root/1]).

Expand Down
2 changes: 1 addition & 1 deletion test/blog.erl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
-module(blog).
-include_lib("graphql/include/graphql.hrl").
-include_lib("../include/graphql.hrl").

-export([inject/0, execute/4]).

Expand Down
2 changes: 1 addition & 1 deletion test/dungeon.erl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
-module(dungeon).
-include_lib("common_test/include/ct.hrl").
-include_lib("graphql/include/graphql.hrl").
-include_lib("../include/graphql.hrl").
-include_lib("stdlib/include/qlc.hrl").

-include("dungeon.hrl").
Expand Down