Updating bodyContentType lens references
commite10bf37bdf1bffc76506c349bc5bc06e738e5686
authorBrendan Hay <brendan.g.hay@gmail.com>
dateSat 11 Jun 2016, 14:55 (10 years ago)
parent1744a97
examples/src/Example/Storage.hs+1−1
@@ -24,7 +24,7 @@ import System.IO
2424-- {-
2525-- import Network.HTTP.Media ((//))
2626----
27−-- b <- sourceBody f <&> bodyContentType .~ ("application" // "json")
27+-- b <- sourceBody f <&> bodyContentType .~ "application" // "json"
2828-- ...
2929--
3030-- -}
gogol/src/Network/Google/Internal/Body.hs+1−1
@@ -35,7 +35,7 @@ getMIMEType =
3535-- | Construct a 'Body' from a 'FilePath'.
3636--
3737-- This attempts to guess the MIME type from the file extension,
38−-- you can use "Network.Google.Types.setMIMEType" to set a MIME type explicitly.
38+-- you can use "Network.Google.Types.bodyContentType" to set a MIME type explicitly.
3939sourceBody :: MonadIO m => FilePath -> m Body
4040sourceBody f = do
4141 n <- getFileSize f