-
-
Save codedmart/d3c5f008c4a8ad27b24e649f8771a590 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
• No instance for (MonadFail | |
(Control.Monad.Trans.AWS.AWST' | |
Network.AWS.Env.Env | |
(Control.Monad.Trans.Resource.Internal.ResourceT IO))) | |
arising from a use of ‘streamUpload’ | |
• In the second argument of ‘(.|)’, namely | |
‘streamUpload Nothing crtMultiUpl’ | |
In the first argument of ‘runConduit’, namely | |
‘(responseBody response .| streamUpload Nothing crtMultiUpl)’ | |
In a stmt of a 'do' block: | |
runConduit | |
(responseBody response .| streamUpload Nothing crtMultiUpl) | |
| | |
7 | runConduit (responseBody response .| streamUpload Nothing crtMultiUpl) | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let crtMultiUpl = createMultipartUpload (BuketName "bucket") (ObjectKey "filename.txt") | |
manager <- liftIO $ newManager tlsManagerSettings | |
request <- liftIO $ parseRequest "https://nonS3.url" | |
liftIO . runResourceT $ runAWST env $ do | |
response <- http request manager | |
runConduit (responseBody response .| streamUpload Nothing crtMultiUpl) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment