evancz/elm-architecture-tutorial

HTTP tutorial doesn't make it clear how load additional http library

steveraden opened this issue · 2 comments

I am not clear on how to get a new dependency elm-lang/http loaded by elm-reactor and the tutorial doesn't mention workflow to do so.

I see related platform issue elm-lang/elm-platform#162 "Error Installing The Elm HTTP Library" I had the same issue with Elm 0.18 and the tutorial at https://guide.elm-lang.org/architecture/effects/http.html. I threw away ~/.elm to no avail, but got it to work running
elm-package install elm-lang/http

Perhaps this is normal, but I'm not sure the tutorials makes it clear when elm-reactor won't grab a dependency. Thanks.

Thanks for the issue! Make sure it satisfies this checklist. My human colleagues will appreciate it!

Here is what to expect next, and if anyone wants to comment, keep these things in mind.

With the latest version of https://guide.elm-lang.org/ there is an Edit button for each example, that takes you to the online editor, like this. So you wouldn't need to use elm install for that path.

This repo also has all the necessary dependencies listed in elm.json, so running based on the examples in README.md should be working.

Finally, the guide now has a section (on this page) that introduces how to use elm install explicitly.

So hopefully these changes address the root issue here!