Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- class HasQueryRouter layout r where
- type RouteQ layout r :: *
- routeQ :: Proxy layout -> Proxy r -> Delayed (Sem r) env QueryRequest (RouteQ layout r) -> Router env r QueryRequest Query
- emptyQueryServer :: RouteQ EmptyQueryServer r
- methodRouter :: HasCodec b => Delayed (Sem r) env req (Sem r (QueryResult b)) -> Router env r req Query
Documentation
class HasQueryRouter layout r where Source #
This class is used to construct a router given a layout
type. The layout
| is constructed using the combinators that appear in the instances here, no other
| Servant combinators are recognized.
routeQ :: Proxy layout -> Proxy r -> Delayed (Sem r) env QueryRequest (RouteQ layout r) -> Router env r QueryRequest Query Source #
Transform a routeQ handler into a Router
.
Instances
methodRouter :: HasCodec b => Delayed (Sem r) env req (Sem r (QueryResult b)) -> Router env r req Query Source #