Module
Stetson.Routing
- Package
- erl-stetson
- Repository
- id3as/purescript-erl-stetson
#GDispatch Source
class GDispatch :: Type -> Row Type -> Constraint
class GDispatch rep (r :: Row Type) | rep -> r where
Members
gDispatch :: Record r -> rep -> RouteHandler
Instances
(GDispatch a r, GDispatch b r) => GDispatch (Sum a b) r
(IsSymbol sym, Cons sym h rx r, GDispatchCtor c h) => GDispatch (Constructor sym c) r
#GDispatchCtor Source
class GDispatchCtor rep f where
Members
gDispatchC :: f -> rep -> RouteHandler
Instances
GDispatchCtor NoArguments (StetsonHandler x s)
GDispatchCtor NoArguments StaticAssetLocation
GDispatchCtor (Argument a) (a -> StetsonHandler x s)
GDispatchCtor (Argument (Array String)) StaticAssetLocation
GDispatchCtor (Argument a) (a -> StaticAssetLocation)
(Generic a rep, GDispatch rep r) => GDispatchCtor (Argument a) (Record r)
(GDispatchCtor right b) => GDispatchCtor (Product (Argument a) right) (a -> b)
GDispatchCtor any CowboyRoutePlaceholder