[elm-discuss] Re: 0.18 Chaining Http requests

2017-02-06 Thread Kingsley Hendrickse
Oh that's exactly what I needed to understand :) thanks -- You received this message because you are subscribed to the Google Groups "Elm Discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to elm-discuss+unsubscr...@googlegroups.com. For more

[elm-discuss] Re: 0.18 Chaining Http requests

2017-02-06 Thread Dmitry Utkin
I guess what you need here is Task.andThen http://package.elm-lang.org/packages/elm-lang/core/latest/Task#andThen See this snippet I've found on github https://github.com/fpapado/elm-flickr-gallery/blob/c040f61575f4f47ce216df1820b42d1751ccdb7a/src/Main.elm#L56 Hope it helps. On Monday,

[elm-discuss] Re: 0.18 Chaining Http requests

2017-02-06 Thread Matthieu Pizenberg
Hi Kingsley, Regarding point 2, the Http.send function enables you to create Cmd messages from http requests, and as you mentionned, Cmd.batch

[elm-discuss] Re: 0.18 Chaining Http requests

2017-02-06 Thread Kingsley Hendrickse
Thanks I don't quite understand how to chain using Task I want to first do getCurrentUser Http request and then do notifyOnLocationChange a regular task - but I can't understand how Task could do this. Even chaining 2 http requests I don't understand since in order to fire a Task you have use