Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- serveQueryApplication :: HasQueryRouter layout r => Proxy layout -> Proxy r -> RouteQ layout r -> QueryApplication (Sem r)
- 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
- class StoreQueryHandlers (kvs :: [*]) (ns :: Symbol) r where
- module Tendermint.SDK.BaseApp.Query.Types
- emptyQueryServer :: RouteQ EmptyQueryServer r
Documentation
serveQueryApplication :: HasQueryRouter layout r => Proxy layout -> Proxy r -> RouteQ layout r -> QueryApplication (Sem r) Source #
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
class StoreQueryHandlers (kvs :: [*]) (ns :: Symbol) r where Source #
Instances
(IsKey k ns, a ~ Value k ns, HasCodec a, StoreQueryHandlers ((k', a') ': as) ns r, Members ((RawStore :: (Type -> Type) -> Type -> Type) ': ((Error AppError :: (Type -> Type) -> Type -> Type) ': ([] :: [(Type -> Type) -> Type -> Type]))) r) => StoreQueryHandlers ((k, a) ': ((k', a') ': as)) ns r Source # | |
(IsKey k ns, a ~ Value k ns, HasCodec a, Members ((RawStore :: (Type -> Type) -> Type -> Type) ': ((Error AppError :: (Type -> Type) -> Type -> Type) ': ([] :: [(Type -> Type) -> Type -> Type]))) r) => StoreQueryHandlers ((k, a) ': ([] :: [Type])) ns r Source # | |