Safe Haskell | None |
---|---|
Language | GHC2021 |
Synopsis
- class ToQueryData a where
- toQueryData :: a -> Text
- class FromQueryData a where
- parseQueryData :: Text -> Either Text a
- showQueryParam :: Show a => a -> Text
- readQueryParam :: Read a => Text -> Either Text a
- parseQueryDatas :: (Traversable t, FromQueryData a) => t Text -> Either Text (t a)
Documentation
class ToQueryData a where Source #
Reimplement ToHttpApiData
based on Show
Nothing
toQueryData :: a -> Text Source #
default toQueryData :: Show a => a -> Text Source #
Instances
class FromQueryData a where Source #
Reimplement FromHttpApiData
based on Read
Nothing
Instances
showQueryParam :: Show a => a -> Text Source #
Encode a Show as a query param
parseQueryDatas :: (Traversable t, FromQueryData a) => t Text -> Either Text (t a) Source #