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

Mentioning ports in the tutorial. #68

Closed
BenBals opened this issue Feb 24, 2016 · 5 comments
Closed

Mentioning ports in the tutorial. #68

BenBals opened this issue Feb 24, 2016 · 5 comments

Comments

@BenBals
Copy link

BenBals commented Feb 24, 2016

I am very new to Elm and have been stuck for some time on performing an http request. Maybe I am handling StartApp.start wrong or something, but as far as I have experienced you have to do the following in your Main.elm or where ever to actually have your effects performed:

port tasks: Signal (Task.Task Effects.Never ())
port tasks =
  app.tasks

Unfortunately this is noted nowhere in the Elm Architecture Tutorial and very difficult to guess from the Interops section at elm-lang.org. I only found it by browsing the source code for the example. It is possible that I did not read carefully enough, but a quick "hey, don't forget to set up a port for your effects to be actually performed" or something along the lines.

Thanks
Ben

@jvoigtlaender
Copy link
Contributor

See #60. Possibly close here?

@BenBals
Copy link
Author

BenBals commented Feb 25, 2016

That would solve it. Thanks.

@esamattis
Copy link

I was confused by this too.

@evancz
Copy link
Owner

evancz commented May 17, 2016

This is not a thing anymore in 0.17 and the guide lives at http://guide.elm-lang.org/

Sorry for the confusion!

@evancz evancz closed this as completed May 17, 2016
@BenBals
Copy link
Author

BenBals commented May 17, 2016

Haven't read through the entire guide yet, but it seems incredibly awesome. I am very excited to see this very best language I've ever used mature and I hope it will become a widely accepted tool so I can use it for more than personal projects!

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

4 participants