Safe Haskell | None |
---|---|
Language | Haskell98 |
DSL/interpreter model for the HTTP client
- data HttpClientF next = Get URI (Either SomeException LByteString -> next)
- newtype CoHttpClientF m a = CoHttpClientF {
- getH :: URI -> m (Either SomeException LByteString, a)
- get :: (MonadFree f m, HttpClientF :<: f, LoggerF :<: f, MonadThrow m) => URI -> m LByteString
Types
data HttpClientF next Source #
HTTP client DSL
Get URI (Either SomeException LByteString -> next) |
Functor HttpClientF Source # | |
Monad m => PairingM (CoHttpClientF m) HttpClientF m Source # | |
newtype CoHttpClientF m a Source #
HTTP client interpreter
CoHttpClientF | |
|
Functor m => Functor (CoHttpClientF m) Source # | |
Monad m => PairingM (CoHttpClientF m) HttpClientF m Source # | |
Primitives
get :: (MonadFree f m, HttpClientF :<: f, LoggerF :<: f, MonadThrow m) => URI -> m LByteString Source #
Perform an HTTP GET request