on master help sign in
A few more corrections
fb92692mrkkrp
Network/HTTP/Req.hs+4−5
@@ -449,7 +449,7 @@ class MonadIO m => MonadHttp m where
449 -- caught by the library. One option is to re-throw it if you are OK with
449 -- caught by the library. One option is to re-throw it if you are OK with
450 -- exceptions, but if you prefer working with something like
450 -- exceptions, but if you prefer working with something like
451 -- 'Control.Monad.Error.MonadError', this is the right place to pass it to
451 -- 'Control.Monad.Error.MonadError', this is the right place to pass it to
452− -- 'Control.Monad.Error.throwError' for example.
452+ -- 'Control.Monad.Error.throwError'.
453
453
454 handleHttpException :: HttpException -> m a
454 handleHttpException :: HttpException -> m a
455
455
@@ -817,8 +817,7 @@ instance HttpBody ReqBodyUrlEnc where
817 getRequestContentType Proxy = pure "application/x-www-form-urlencoded"
817 getRequestContentType Proxy = pure "application/x-www-form-urlencoded"
818
818
819-- | An opaque monoidal value that allows to collect URL-encoded parameters
819-- | An opaque monoidal value that allows to collect URL-encoded parameters
820−-- to be wrapped in 'ReqBodyUrlEnc' (documentation for this type has an
820+-- to be wrapped in 'ReqBodyUrlEnc'.
821−-- example of use).
822
821
823newtype FormUrlEncodedParam = FormUrlEncodedParam [(Text, Maybe Text)]
822newtype FormUrlEncodedParam = FormUrlEncodedParam [(Text, Maybe Text)]
824 deriving (Semigroup, Monoid)
823 deriving (Semigroup, Monoid)
@@ -839,8 +838,8 @@ class HttpBody body where
839 getRequestBody :: body -> L.RequestBody
838 getRequestBody :: body -> L.RequestBody
840
839
841 -- | This method allows to optionally specify value of @Content-Type@
840 -- | This method allows to optionally specify value of @Content-Type@
842− -- header that should be used when this body option is used. By default
841+ -- header that should be used with particular body option. By default it
843− -- this returns 'Nothing' and so @Content-Type@ is not set.
842+ -- returns 'Nothing' and so @Content-Type@ is not set.
844
843
845 getRequestContentType :: Proxy body -> Maybe ByteString
844 getRequestContentType :: Proxy body -> Maybe ByteString
846 getRequestContentType Proxy = Nothing
845 getRequestContentType Proxy = Nothing