File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 11{-# OPTIONS_GHC -Wall #-}
2+ {-# LANGUAGE BangPatterns #-}
3+
24module Stuff
35 ( details
46 , interfaces
@@ -131,6 +133,12 @@ withRootLock root work =
131133 do let dir = stuff root
132134 Dir. createDirectoryIfMissing True dir
133135 Lock. withFileLock (dir </> " lock" ) Lock. Exclusive (\ _ -> work)
136+ & Lamdera. alternativeImplementation (do
137+ Lamdera. debug " 🔒 withRootLock"
138+ ! res <- Lock. withFileLock (dir </> " lock" ) Lock. Exclusive (\ _ -> work)
139+ Lamdera. debug " 🔓 unlocking withRootLock"
140+ pure res
141+ )
134142
135143
136144withRegistryLock :: PackageCache -> IO a -> IO a
Original file line number Diff line number Diff line change @@ -359,7 +359,7 @@ killTrackedThreads = do
359359 debug $ " No tracked GHCI threads to kill."
360360 pure []
361361 threads -> do
362- debug $ " Killing tracked GHCI threads: " ++ show threads
362+ debug $ " 🔪 Killing tracked GHCI threads: " ++ show threads
363363 mapM killThread threads
364364 pure []
365365 )
You can’t perform that action at this time.
0 commit comments