Safe Haskell | None |
---|---|
Language | Haskell98 |
Imm.HTTP
Contents
Description
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 #
HTTP client DSL
Constructors
Get URI (Either SomeException LByteString -> next) |
Instances
Functor HttpClientF # | |
Monad m => PairingM (CoHttpClientF m) HttpClientF m # | |
newtype CoHttpClientF m a #
HTTP client interpreter
Constructors
CoHttpClientF | |
Fields
|
Instances
Functor m => Functor (CoHttpClientF m) # | |
Monad m => PairingM (CoHttpClientF m) HttpClientF m # | |
Primitives
get :: (MonadFree f m, HttpClientF :<: f, LoggerF :<: f, MonadThrow m) => URI -> m LByteString #
Perform an HTTP GET request