Safe Haskell | None |
---|---|
Language | Haskell2010 |
Generic Request type
Documentation
class Request a r | a -> r where Source #
toRoute :: a -> Route Source #
toAction :: a -> Options -> String -> IO (Response ByteString) Source #
invokeRequest :: forall reffs. (BotC reffs, FromJSON r) => a -> Sem reffs (Either RestError r) Source #
Instances
patchWith' :: Patchable a => a -> Options -> String -> IO (Response ByteString) Source #