Module

Paxl.Fetch

Package
purescript-paxl
Repository
jqyu/purescript-paxl

#Fetchable Source

class Fetchable req env eff | req -> env, req -> eff where

Members

Instances

#FetchableRows Source

class FetchableRows flist (frow :: Row Type) erow prow (eff :: Row Effect) | flist -> frow, flist -> erow, flist -> prow, flist -> eff where

Members

Instances

#Fetch Source

data Fetch (fetches :: Row Type) (a :: Type)

Instances

#Req Source

data Req (req :: Type -> Type)

#request Source

request :: forall r2 r1 a req sym. RowCons sym (Req req) r1 r2 => IsSymbol sym => SProxy sym -> req a -> GenPaxl (Fetch r2) a

#requestCached Source

requestCached :: forall r2 r1 a req sym. RowCons sym (Req req) r1 r2 => IsSymbol sym => Cacheable req => SProxy sym -> req a -> GenPaxl (Fetch r2) a

#completeBlockedFetch Source

completeBlockedFetch :: forall a eff req. BlockedFetch req a -> Result a -> Aff eff Unit

#completeBlockedFetchOf Source

completeBlockedFetchOf :: forall b a eff req. (a ~ b) -> BlockedFetch req a -> Result b -> Aff eff Unit

Re-exports from Paxl.RequestStore

#Result Source

data Result a

Constructors

Instances

#Key Source

newtype Key

Constructors

#BlockedFetch Source

newtype BlockedFetch req a

Constructors

Instances

#Cacheable Source

class Cacheable req  where

Members