Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- class Monad m => RunQueryClient m where
- type QueryStringList = [(Text, Text)]
- class HasQueryClient m layout where
- type ClientQ (m :: Type -> Type) layout :: Type
- genClientQ :: Proxy m -> Proxy layout -> (Query, QueryStringList) -> ClientQ m layout
- appendToQueryString :: Text -> Maybe Text -> QueryStringList -> QueryStringList
- addQueryParamsToPath :: QueryStringList -> Text -> Text
- leafGenClient :: HasCodec a => RunQueryClient m => (Query, QueryStringList) -> m (QueryClientResponse a)
- data EmptyQueryClient = EmptyQueryClient
Documentation
class Monad m => RunQueryClient m where Source #
type QueryStringList = [(Text, Text)] Source #
class HasQueryClient m layout where Source #
genClientQ :: Proxy m -> Proxy layout -> (Query, QueryStringList) -> ClientQ m layout Source #
Instances
:: Text | param name |
-> Maybe Text | param value |
-> QueryStringList | |
-> QueryStringList |
addQueryParamsToPath :: QueryStringList -> Text -> Text Source #
leafGenClient :: HasCodec a => RunQueryClient m => (Query, QueryStringList) -> m (QueryClientResponse a) Source #
data EmptyQueryClient Source #
Singleton type representing a client for an empty API.