Skip to content

Commit

Permalink
Disambiguate a view pattern
Browse files Browse the repository at this point in the history
Summary:

Test Plan:
  • Loading branch information
ndmitchell committed Dec 30, 2024
1 parent bf9a383 commit a69d225
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Development/Shake/Internal/Rules/File.hs
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ ruleIdentity _ = \k v -> case answer v of
Nothing -> Nothing

ruleRun :: ShakeOptions -> (FilePath -> Rebuild) -> BuiltinRun FileQ FileR
ruleRun opts@ShakeOptions{..} rebuildFlags o@(FileQ (fileNameToString -> xStr)) oldBin@(fmap getEx -> old :: Maybe Answer) mode = do
ruleRun opts@ShakeOptions{..} rebuildFlags o@(FileQ (fileNameToString -> xStr)) oldBin@(fmap getEx -> (old :: Maybe Answer)) mode = do
-- for One, rebuild makes perfect sense
-- for Forward, we expect the child will have already rebuilt - Rebuild just lets us deal with code changes
-- for Phony, it doesn't make that much sense, but probably isn't harmful?
Expand Down

0 comments on commit a69d225

Please sign in to comment.