Updates from new ormolu 0.4 (#167)
* Changes from formatter * Fix github action run on master branch
This commit is contained in:
parent
193be59432
commit
c59b7066fc
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
@ -1,6 +1,6 @@
|
|||||||
name: CI
|
name: CI
|
||||||
|
|
||||||
# Trigger the workflow on push or pull request, but only for the main branch
|
# Trigger the workflow on push or pull request, but only for the master branch
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [master]
|
branches: [master]
|
||||||
@ -45,7 +45,7 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
if: github.event.action == 'opened' || github.event.action == 'synchronize' || github.event.ref == 'refs/heads/main'
|
if: github.event.action == 'opened' || github.event.action == 'synchronize' || github.event.ref == 'refs/heads/master'
|
||||||
|
|
||||||
- uses: haskell/actions/setup@v1
|
- uses: haskell/actions/setup@v1
|
||||||
id: setup-haskell-cabal
|
id: setup-haskell-cabal
|
||||||
|
|||||||
@ -186,7 +186,7 @@ crcCheck = do
|
|||||||
-- 12 bytes have been read off the current message. Now read the
|
-- 12 bytes have been read off the current message. Now read the
|
||||||
-- next (n-12)-4 bytes and accumulate the checksum, and yield it.
|
-- next (n-12)-4 bytes and accumulate the checksum, and yield it.
|
||||||
let startCrc = crc32 b
|
let startCrc = crc32 b
|
||||||
finalCrc <- accumulateYield (fromIntegral n -16) startCrc
|
finalCrc <- accumulateYield (fromIntegral n - 16) startCrc
|
||||||
|
|
||||||
bs <- readNBytes 4
|
bs <- readNBytes 4
|
||||||
expectedCrc :: Word32 <- liftIO $ parseBinary bs
|
expectedCrc :: Word32 <- liftIO $ parseBinary bs
|
||||||
@ -276,7 +276,7 @@ selectObjectContent b o r = do
|
|||||||
riNeedsLocation = False,
|
riNeedsLocation = False,
|
||||||
riQueryParams = [("select", Nothing), ("select-type", Just "2")]
|
riQueryParams = [("select", Nothing), ("select-type", Just "2")]
|
||||||
}
|
}
|
||||||
--print $ mkSelectRequest r
|
-- print $ mkSelectRequest r
|
||||||
resp <- mkStreamRequest reqInfo
|
resp <- mkStreamRequest reqInfo
|
||||||
return $ NC.responseBody resp .| selectProtoConduit
|
return $ NC.responseBody resp .| selectProtoConduit
|
||||||
|
|
||||||
|
|||||||
@ -376,7 +376,7 @@ signV4Stream !payloadLength !sp !req =
|
|||||||
<> bs
|
<> bs
|
||||||
<> "\r\n"
|
<> "\r\n"
|
||||||
C.yield chunkBS
|
C.yield chunkBS
|
||||||
signerConduit (n -1) lps nextSign
|
signerConduit (n - 1) lps nextSign
|
||||||
|
|
||||||
-- Second case encodes the last chunk which is smaller than
|
-- Second case encodes the last chunk which is smaller than
|
||||||
-- 'chunkSizeConstant'
|
-- 'chunkSizeConstant'
|
||||||
|
|||||||
@ -235,7 +235,7 @@ limitedMapConcurrently count act args = do
|
|||||||
waitSem t = U.atomically $ do
|
waitSem t = U.atomically $ do
|
||||||
v <- U.readTVar t
|
v <- U.readTVar t
|
||||||
if v > 0
|
if v > 0
|
||||||
then U.writeTVar t (v -1)
|
then U.writeTVar t (v - 1)
|
||||||
else U.retrySTM
|
else U.retrySTM
|
||||||
signalSem t = U.atomically $ do
|
signalSem t = U.atomically $ do
|
||||||
v <- U.readTVar t
|
v <- U.readTVar t
|
||||||
|
|||||||
@ -1076,7 +1076,7 @@ copyObjectTests = funTestWithBucket "copyObject related tests" $
|
|||||||
copyObjectPart
|
copyObjectPart
|
||||||
dstInfo'
|
dstInfo'
|
||||||
srcInfo'
|
srcInfo'
|
||||||
{ srcRange = Just $ (,) ((p -1) * mb5) ((p -1) * mb5 + (mb5 - 1))
|
{ srcRange = Just $ (,) ((p - 1) * mb5) ((p - 1) * mb5 + (mb5 - 1))
|
||||||
}
|
}
|
||||||
uid
|
uid
|
||||||
(fromIntegral p)
|
(fromIntegral p)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user