A datatype representing fetched data.
Map a function into the Success value.
Return the Success value, or the default.
Convert a Result Error, probably produced from elm-http, to a RemoteData value.
Convert a web Task, probably produced from elm-http, to a RemoteData Effect.
Monoidal append - join two RemoteData values together as though
they were one. If both values are Failure, the left one wins.
Frequently when you're fetching data from an API, you want to represent four different states: *
NotAsked- We haven't asked for the data yet. *Loading- We've asked, but haven't got an answer yet. *Failure- We asked, but something went wrong. Here's theError. *Success- Everything worked, and here's the data.