File tree Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -997,7 +997,7 @@ withLockedDistDir announce root inner = do
997
997
announce $ " still blocking for directory lock on " <>
998
998
fromString (toFilePath lockFP) <>
999
999
" ; maybe another Stack process is running?"
1000
- withCompanion complainer $
1000
+ withCompanion ( \ x -> complainer x) $
1001
1001
\ stopComplaining ->
1002
1002
withRunInIO $ \ run ->
1003
1003
withFileLock (toFilePath lockFP) Exclusive $ \ _ ->
Original file line number Diff line number Diff line change @@ -93,8 +93,9 @@ withProjectStorage ::
93
93
(HasBuildConfig env , HasLogFunc env )
94
94
=> ReaderT SqlBackend (RIO env ) a
95
95
-> RIO env a
96
- withProjectStorage inner =
97
- flip SQLite. withStorage_ inner =<< view (buildConfigL . to bcProjectStorage . to unProjectStorage)
96
+ withProjectStorage inner = do
97
+ storage <- view (buildConfigL . to bcProjectStorage . to unProjectStorage)
98
+ SQLite. withStorage_ storage inner
98
99
99
100
-- | Key used to retrieve configuration or flag cache
100
101
type ConfigCacheKey = Unique ConfigCacheParent
Original file line number Diff line number Diff line change @@ -134,8 +134,9 @@ withUserStorage ::
134
134
(HasConfig env , HasLogFunc env )
135
135
=> ReaderT SqlBackend (RIO env ) a
136
136
-> RIO env a
137
- withUserStorage inner =
138
- flip SQLite. withStorage_ inner =<< view (configL . to configUserStorage . to unUserStorage)
137
+ withUserStorage inner = do
138
+ storage <- view (configL . to configUserStorage . to unUserStorage)
139
+ SQLite. withStorage_ storage inner
139
140
140
141
-- | Key used to retrieve the precompiled cache
141
142
type PrecompiledCacheKey = Unique PrecompiledCacheParent
You can’t perform that action at this time.
0 commit comments