Module
Control.Applicative.Fetch
- Package
- purescript-fetch
- Repository
- rightfold/purescript-fetch
More efficient data fetching using deduplication, batching, and caching.
#Resource Source
class (Ord k) <= Resource k r f | k r -> f where
A resource implements the fetching of data.
Instances must satisfy the following laws in addition to the Ord
laws:
- Key preservation:
(true <$ resource ks) = map (\m -> all (Map.member <@> m) ks) (resource ks)
Members
Instances
(MonadState (Map k r) f, Resource k r f) => Resource k (Memoize r) f
- Modules
- Control.
Applicative. Fetch