Http.send creates a Task. To run a Task you have to create a Cmd Msg from 
it and hand that to the runtime via the return from the init or update 
function.

So rather than passing the task to Task.succeed you probably want to pass 
it to Task.perform instead.

There’s an example at 
https://gist.github.com/fredcy/02a2dff9c8990098ae2666993beb480e#file-http-send-example-elm-L39

The Http package is reputed to be simpler to use in the coming 0.18 release.
​

-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to