on master help sign in
A few more corrections
commitfb92692bb628cfafb0ae1b8b7821c2ae3d820784 authormrkkrp <markkarpov@opmbx.org> dateMon 7 Nov 2016, 22:28 (10 years ago) parenta5b7709
1 file changed+4−5
Network/HTTP/Req.hs+4−5
Network/HTTP/Req.hs+4−5
@@ -449,7 +449,7 @@ class MonadIO m => MonadHttp m where
449449 -- caught by the library. One option is to re-throw it if you are OK with
450450 -- exceptions, but if you prefer working with something like
451451 -- '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'.
453453
454454 handleHttpException :: HttpException -> m a
455455
@@ -817,8 +817,7 @@ instance HttpBody ReqBodyUrlEnc where
817817 getRequestContentType Proxy = pure "application/x-www-form-urlencoded"
818818
819819-- | An opaque monoidal value that allows to collect URL-encoded parameters
820−-- to be wrapped in 'ReqBodyUrlEnc' (documentation for this type has an
821−-- example of use).
820+-- to be wrapped in 'ReqBodyUrlEnc'.
822821
823822newtype FormUrlEncodedParam = FormUrlEncodedParam [(Text, Maybe Text)]
824823 deriving (Semigroup, Monoid)
@@ -839,8 +838,8 @@ class HttpBody body where
839838 getRequestBody :: body -> L.RequestBody
840839
841840 -- | This method allows to optionally specify value of @Content-Type@
842− -- header that should be used when this body option is used. By default
843− -- this returns 'Nothing' and so @Content-Type@ is not set.
841+ -- header that should be used with particular body option. By default it
842+ -- returns 'Nothing' and so @Content-Type@ is not set.
844843
845844 getRequestContentType :: Proxy body -> Maybe ByteString
846845 getRequestContentType Proxy = Nothing