Copyright | (C) 2017- Mark Andrus Roberts |
---|---|
License | BSD-style (see the file LICENSE) |
Maintainer | Mark Andrus Roberts <markandrusroberts@gmail.com> |
Stability | provisional |
Safe Haskell | None |
Language | Haskell98 |
- newtype RequestF a = RequestF (Request, Response ByteString -> a)
- newtype RequestT m a = RequestT {
- runRequestT :: FreeT RequestF m a
- class Monad m => MonadRequest m where
- baseURL :: Text
- runRequest' :: MonadIO m => (Text, Text) -> RequestT m a -> m a
Documentation
RequestF
represents an HTTP request and stores a continuaton for the
eventual Response
to the request.
RequestF (Request, Response ByteString -> a) |
augments an existing monad RequestT
m am
with the ability to
perform HTTP requests for Resource
s.
RequestT | |
|
MonadTrans RequestT Source # | |
Monad m => Monad (RequestT m) Source # | |
Monad m => Functor (RequestT m) Source # | |
Monad m => Applicative (RequestT m) Source # | |
MonadIO m => MonadIO (RequestT m) Source # | |
Monad m => MonadRequest (RequestT m) Source # | |
Generic (RequestT m a) Source # | |
type Rep (RequestT m a) Source # | |
class Monad m => MonadRequest m where Source #
Monad m => MonadRequest (RequestT m) Source # | |
Monad m => MonadRequest (TwilioT m) Source # | |