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

Dialyzer type warning in ExHal.Client.get/2 as shown in docs #54

Open
alexslade opened this issue Jan 9, 2018 · 1 comment
Open

Dialyzer type warning in ExHal.Client.get/2 as shown in docs #54

alexslade opened this issue Jan 9, 2018 · 1 comment

Comments

@alexslade
Copy link

Hi Peter 👋

I'm liking the library, but as an Elixir newbie I'm confused by this error. A literal copy-paste of your example code is yielding a type warning, and my digging around isn't making it clear why. Could you point me in the right direction? I'd be happy to issue a PR with a fix when I understand it.

{:ok, doc, _response_header} =
  ExHal.client()
  |> ExHal.Client.add_headers("User-Agent": "MyClient/1.0")
  |> ExHal.Client.get("http://example.com/hal")

screen shot 2018-01-09 at 21 26 04

I can see that's there's an opaque type defined for Client, but there's no typespec for get which is confusing me...

@pezra
Copy link
Owner

pezra commented Jan 10, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants