@@ -27,7 +27,6 @@ import Protolude (
27
27
Semigroup ((<>) ),
28
28
Show ,
29
29
Text ,
30
- Traversable (sequence ),
31
30
die ,
32
31
filter ,
33
32
foldMap ,
@@ -1279,24 +1278,26 @@ printOutput appName config = do
1279
1278
hookFiles <- listDirectory hooksPathNorm
1280
1279
1281
1280
hookFilesPerm :: [(FilePath , Permissions )] <-
1282
- sequence $
1283
- hookFiles
1284
- & filter
1285
- ( \ name ->
1286
- (" pre-" `isPrefixOf` name) || (" post-" `isPrefixOf` name)
1287
- )
1288
- <&> (hooksPathNorm </> )
1289
- <&> \ path -> do
1290
- perm <- getPermissions path
1291
- pure (path, perm)
1281
+ hookFiles
1282
+ & filter
1283
+ ( \ name ->
1284
+ (" pre-" `isPrefixOf` name) || (" post-" `isPrefixOf` name)
1285
+ )
1286
+ <&> (hooksPathNorm </> )
1287
+ & P. mapM
1288
+ ( \ path -> do
1289
+ perm <- getPermissions path
1290
+ pure (path, perm)
1291
+ )
1292
1292
1293
1293
hookFilesPermContent <-
1294
- sequence $
1295
- hookFilesPerm
1296
- & filter (\ (_, perm) -> executable perm)
1297
- <&> \ (filePath, perm) -> do
1298
- fileContent <- readFile filePath
1299
- pure (filePath, perm, fileContent)
1294
+ hookFilesPerm
1295
+ & filter (\ (_, perm) -> executable perm)
1296
+ & P. mapM
1297
+ ( \ (filePath, perm) -> do
1298
+ fileContent <- readFile filePath
1299
+ pure (filePath, perm, fileContent)
1300
+ )
1300
1301
1301
1302
let configNorm = addHookFilesToConfig configNormHookDir hookFilesPermContent
1302
1303
@@ -1306,7 +1307,7 @@ printOutput appName config = do
1306
1307
connection <- setupConnection configNorm
1307
1308
1308
1309
-- For debugging SQLite interactions
1309
- -- SQLite.setTrace connection $ Just print
1310
+ -- SQLite.setTrace connection $ Just P. print
1310
1311
1311
1312
migrationsStatus <- runMigrations configNorm connection
1312
1313
nowElapsed <- timeCurrentP
0 commit comments