IT'S WORK, thank you so much William ~ 

BUT I HAVE A FEW MORE QUESTIONS:

- Http.fromJson decoder (Task.succeed response) => why do you use 
(Task.succeed response) ? And not just give as argument "response"?
Is it connected with `andThen` and its signature  andThen 
<http://package.elm-lang.org/packages/elm-lang/core/4.0.1/Task#andThen> : 
Task <http://package.elm-lang.org/packages/elm-lang/core/4.0.1/Task#Task> x 
a -> (a -> Task 
<http://package.elm-lang.org/packages/elm-lang/core/4.0.1/Task#Task> x b) -> 
Task <http://package.elm-lang.org/packages/elm-lang/core/4.0.1/Task#Task> x 
b where a is "just" the response of the post request which must be 
transformed into a Task by using Task.succeed succeed 
<http://package.elm-lang.org/packages/elm-lang/core/4.0.1/Task#succeed> : a 
-> Task <http://package.elm-lang.org/packages/elm-lang/core/4.0.1/Task#Task> 
x a in order to pass it to the fromJson function which requires fromJson 
<http://package.elm-lang.org/packages/evancz/elm-http/3.0.1/Http#fromJson> : 
Decoder a -> Task RawError 
<http://package.elm-lang.org/packages/evancz/elm-http/3.0.1/Http#RawError> 
Response 
<http://package.elm-lang.org/packages/evancz/elm-http/3.0.1/Http#Response> 
-> Task Error 
<http://package.elm-lang.org/packages/evancz/elm-http/3.0.1/Http#Error> a ?

- Do you know the difference between Task.Task and Platform.Task?

I still have to write the "correct" decoder of the result of the 
Http.fromJson :)

-- 
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