| Safe Haskell | None |
|---|---|
| Language | GHC2024 |
Okapi.Mode.Function
Documentation
data Function (n :: Type -> Type) shape where Source #
Constructors
| Fn :: forall method path query headers body (n :: Type -> Type) result. ((Request method path query headers body, Request) -> n result) -> Function n (Shape method path query headers body result) |
fn :: ((Request method path query headers body, Request) -> n result) -> Function n (Shape method path query headers body result) Source #
serve :: forall (n :: Type -> Type) method path query headers body result. (n ~> IO) -> Forest (Shape method path query headers body result) -> Function n (Shape method path query headers body result) -> Application Source #
tryServe :: forall (n :: Type -> Type) method path query headers body result. (n ~> IO) -> Forest (Shape method path query headers body result) -> Function n (Shape method path query headers body result) -> Middleware Source #
class GFunction (n :: Type -> Type) (epF :: Type -> Type) (svF :: Type -> Type) Source #
Minimal complete definition
gServe
Instances
| (GFunction n epL svL, GFunction n epR svR) => GFunction n (epL :*: epR) (svL :*: svR) Source # | |
Defined in Okapi.Mode.Function | |
| GFunction n epF svF => GFunction n (C1 cm epF) (C1 cm' svF) Source # | |
Defined in Okapi.Mode.Function | |
| GFunction n epF svF => GFunction n (D1 dm epF) (D1 dm' svF) Source # | |
Defined in Okapi.Mode.Function | |
| GFunction n (S1 sm (Rec0 (Forest (Shape method path query headers body result)))) (S1 sm' (Rec0 (Function n (Shape method path query headers body result)))) Source # | |