Mateusz Kowalczyk
Mateusz Kowalczyk
`files.upload` can still be used through the `content` field even without multi-part upload. The codegen for it works fine so maybe it's better to have something than nothing.
> `files.upload` can still be used through the `content` field even without multi-part upload. The codegen for it works fine so maybe it's better to have something than nothing. I've...
Below is a dirty hack that rips out `token` and puts it in header. You can't keep it in the params even if you have the header present. ```rust ///...
If you're using `base-4.15` that probably means you're using the unreleased `9.0.x` version of GHC which has the `stm` (and other libraries) dependency versions bumped. This is common practice in...
Hm, hm, you're right. I even see it on https://www.haskell.org/ghc/download.html ; I don't know what happened, I think I was tripping or something. I guess you must be right then....
In both cases we can trivially replace it with http://hackage.haskell.org/package/base-4.12.0.0/docs/Data-List-NonEmpty.html#v:reverse : we do the pattern match to check non-emptiness already so we shouldn't really be paying any new costs.
@ckoparkar No... Instead of ``` ys retry _ -> do let (z:zs) = reverse ys -- NB. lazy: we want the transaction to be -- short, otherwise it will conflict...
Alternative without going through the smart constructor: ``` readTVar write >>= \case [] -> retry x : xs -> do let (z :| zs) = NE.reverse (x :| xs) ```
I'm not the maintainer, just a passerby. Looks OK I guess.
Test-case: ```hs main :: IO () main = do v