Skip to content

Commit

Permalink
escape the lock
Browse files Browse the repository at this point in the history
  • Loading branch information
pepeiborra committed Mar 17, 2021
1 parent 77f1784 commit 8c1a5ec
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Development/Shake/Internal/Core/Build.hs
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,8 @@ buildRunMode global stack database me = do
buildRunDependenciesChanged :: Global -> Stack -> Database -> Result a -> Wait Locked Bool
buildRunDependenciesChanged global stack database me
| Just keys <- globalKeysChanged global
= pure $ any (`HashSet.member` keys) (foldMap fromDepends $ depends me)
= Later $ \cont -> cont $
any (`HashSet.member` keys) (foldMap fromDepends $ depends me)
| otherwise = isJust <$> firstJustM id
[firstJustWaitUnordered (fmap test . lookupOne global stack database) x | Depends x <- depends me]
where
Expand Down

0 comments on commit 8c1a5ec

Please sign in to comment.