The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

opopov (1) [Avatar] Offline
#1
In the code listing
initialCmd : Cmd Msg
initialCmd =
    "http://elm-in-action.com/breakfast-burritos/list"
        |> Http.getString
        |> Task.perform handleLoadFailure handleLoadSuccess



There seems to be a reference to the functions that do not exist, that results in a compile error

-- NAMING ERROR ------------------------------------------------ PhotoGroove.elm

Cannot find variable `handleLoadFailure`

204|     |> Task.perform handleLoadFailure handleLoadSuccess
                         ^^^^^^^^^^^^^^^^^


-- NAMING ERROR ------------------------------------------------ PhotoGroove.elm

Cannot find variable `handleLoadSuccess`

204|     |> Task.perform handleLoadFailure handleLoadSuccess
                                           ^^^^^^^^^^^^^^^^^


At the same time, replacing "Task.perform handleLoadFailure handleLoadSuccess" with "Http.send LoadPhotos" produces the expected result, just like on "Figure 4.7 Displaying an error as a status message"