Skip to content

Instantly share code, notes, and snippets.

@codedmart

codedmart/Error Secret

Created October 8, 2020 12:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codedmart/d3c5f008c4a8ad27b24e649f8771a590 to your computer and use it in GitHub Desktop.
Save codedmart/d3c5f008c4a8ad27b24e649f8771a590 to your computer and use it in GitHub Desktop.
• 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)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
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