axman6 / amazonka-s3-streaming

Provides a conduit based interface to uploading data to S3 using the Multipart API
MIT License
20 stars 23 forks source link

Main.hs won't compile #23

Closed xfchen closed 1 year ago

xfchen commented 3 years ago

here is what I get:

stack exec -- runghc Main.hs                                                                                                                                           09:30:21

Main.hs:37:60: error:
    • No instance for (Control.Monad.Fail.MonadFail
                         (Control.Monad.Trans.AWS.AWST'
                            Env (Control.Monad.Trans.Resource.Internal.ResourceT IO)))
        arising from a use of ‘streamUpload’
    • In the second argument of ‘(.|)’, namely
        ‘streamUpload Nothing (createMultipartUpload buck ky)’
      In the first argument of ‘runConduit’, namely
        ‘(sourceHandle stdin
            .| streamUpload Nothing (createMultipartUpload buck ky))’
      In the first argument of ‘(>>=)’, namely
        ‘runConduit
           (sourceHandle stdin
              .| streamUpload Nothing (createMultipartUpload buck ky))’
   |
37 |                   "-" -> runConduit (sourceHandle stdin .| streamUpload Nothing (createMultipartUpload buck ky))
   |                                                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
peironggg commented 3 years ago

Hi, I am getting the same problem as you. Are you able to find a solution for it?

axman6 commented 2 years ago

The s3upload executable has been rewritten based on the Amazonka 2.0 rewrite that’s been merged to master. If this is still relevant to you, please check out the latest code and confirm that compiling with -fs3upload-exe builds the executable (I have tested it and it should work fine).