File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
src/Development/Shake/Internal/Rules Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments