on develop help sign in
Merge pull request #64 from mbj/fix/storage-examples

Fix storage examples

commit953e43b3035557d9999a964a4fa4ef69a2f452f6 authorBrendan Hay <brendanhay@users.noreply.github.com> dateMon 27 Feb 2017, 06:15 (10 years ago) parent9882f31c6465bd
1 file changed+2−2
examples/src/Example/Storage.hs+2−2
examples/src/Example/Storage.hs+2−2
@@ -40,7 +40,7 @@ import qualified Network.Google.Storage as Storage
4040--example :: Text -> FilePath -> IO ()
4141example bucket input output = do
4242 -- Setup a logger to emit 'Debug' (or higher) log statements to 'stdout':
43− lgr <- Google.newLogger Debug stdout
43+ lgr <- Google.newLogger Google.Debug stdout
4444
4545 -- Create a new environment which will discover the appropriate
4646 -- AuthN/AuthZ credentials, and explicitly state the OAuth scopes
@@ -57,7 +57,7 @@ example bucket input output = do
5757 runResourceT . Google.runGoogle env $ do
5858 -- Upload the 'input' file contents to the specified bucket, using
5959 -- the file path as the key:
60− _ <- Google.upload (Storage.objectsInsert bucket object' & Storage.oiName ?~ key) body
60+ _ <- Google.upload (Storage.objectsInsert bucket Storage.object' & Storage.oiName ?~ key) body
6161
6262 -- Download from the bucket/key and create a source of the HTTP stream:
6363 stream <- Google.download (Storage.objectsGet bucket key)