Module

Payload.Guards

Package
purescript-payload
Repository
hoodunit/purescript-payload

#Guard Source

data Guard (name :: Symbol) a

Constructors

#GuardFn Source

type GuardFn a = Request -> Aff a

#RunGuards Source

class RunGuards (guardNames :: GuardList) (guardsSpec :: Row Type) (allGuards :: Row Type) (results :: Row Type) (routeGuardSpec :: Row Type) | guardNames guardsSpec allGuards -> routeGuardSpec where

Members

Instances

  • RunGuards GNil guardsSpec allGuards routeGuardSpec routeGuardSpec
  • (IsSymbol name, Cons name guardVal guardsSpec' guardsSpec, Cons name (GuardFn guardRes) allGuards' allGuards, Cons name guardVal results newResults, Lacks name results, ToGuardVal guardRes guardVal, RunGuards rest guardsSpec allGuards newResults routeGuardSpec) => RunGuards (GCons name rest) guardsSpec allGuards results routeGuardSpec

#ToGuardVal Source

class ToGuardVal a b  where

Members

Instances