Unavailable. Nobody can download this version any more, with elm or with the Lamdera compiler: github.com/opvasger/loadable is gone (deleted or private); Software Heritage not asked yet (this run's --swh-calls were used up); no fork with tag 3.1.0 found (31 same-name repos checked); no cached copy. Use another version.
This module helps you model values loaded, for example, from a database over Http/GraphQL.
Update your loadable to expect a new value. Use this when you expect a new value to arrive soon.
Update the loadable with a result. Use this when a new value arrives, and your loadable is expecting the update.
Does the loadable contain a stale value? Staleness implies a reload is underway or failed, in which case the value from the most recent load is available.
Is any value, stale or otherwise, contained within the loadable?
Transform the value of a loadable.
Transform the values of two loadables, falling back to the weakest constructor of the two. Precedence is as follows:
Failure
Idle
Loading
ReloadFailure
Reloading
Success
Refer to map2. Loadables are combined chronologically.
Transform the error of a loadable.
Get the value of a loadable, or a default value if there is none.
Transform a result into a loadable.
A representation of data-loading. This would usually go into your model.