Skip to content

Commit 4b5bb36

Browse files
committed
Add some more frozen call stacks where it makes sense
1 parent e2c5971 commit 4b5bb36

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Development/Shake/Internal/Rules/File.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -563,4 +563,4 @@ addPhony help act = addUserRule $ FileRule help $ fmap ModePhony . act
563563
-- If the 'Action' completes successfully the file is considered up-to-date, even if the file
564564
-- has not changed.
565565
(%>) :: Located => FilePattern -> (FilePath -> Action ()) -> Rules ()
566-
(%>) test act = (if simple test then id else priority 0.5) $ root (show test ++ " %> at " ++ callStackTop) (test ?==) act
566+
(%>) test act = withFrozenCallStack $ (if simple test then id else priority 0.5) $ root (show test ++ " %> at " ++ callStackTop) (test ?==) act

src/Development/Shake/Internal/Rules/Files.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ ps &%> act
165165
| not $ compatible ps = error $ unlines $
166166
"All patterns to &%> must have the same number and position of // and * wildcards" :
167167
["* " ++ p ++ (if compatible [p, head ps] then "" else " (incompatible)") | p <- ps]
168-
| otherwise = do
168+
| otherwise = withFrozenCallStack $ do
169169
forM_ (zipFrom 0 ps) $ \(i,p) ->
170170
(if simple p then id else priority 0.5) $
171171
fileForward (show ps ++ " &%> at " ++ callStackTop) $ let op = (p ?==) in \file -> if not $ op file then Nothing else Just $ do

0 commit comments

Comments
 (0)