Skip to content

Commit

Permalink
Avoid -Wname-shadowing
Browse files Browse the repository at this point in the history
  • Loading branch information
philderbeast committed Dec 11, 2024
1 parent ea745c3 commit 4d05377
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Cabal/src/Distribution/Backpack/Configure.hs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import Distribution.InstalledPackageInfo
import qualified Distribution.InstalledPackageInfo as Installed
import Distribution.ModuleName
import Distribution.Package
import Distribution.PackageDescription
import Distribution.PackageDescription (FlagAssignment, PackageDescription (..), libName)
import Distribution.Simple.Compiler
import Distribution.Simple.Flag
import Distribution.Simple.LocalBuildInfo
Expand Down
8 changes: 4 additions & 4 deletions Cabal/src/Distribution/Simple/SetupHooks/Rule.hs
Original file line number Diff line number Diff line change
Expand Up @@ -610,9 +610,9 @@ mkCommand
-> StaticPtr (arg -> res)
-> arg
-> Command arg res
mkCommand dict actionPtr arg =
mkCommand dict action arg =
Command
{ actionPtr = UserStatic actionPtr
{ actionPtr = UserStatic action
, actionArg = ScopedArgument arg
, cmdInstances = UserStatic dict
}
Expand Down Expand Up @@ -822,9 +822,9 @@ runRuleDynDepsCmd = \case
}
| Dict <- deRefStaticPtr instsPtr ->
Just $ do
(deps, depsRes) <- runCommand depsCmd
(deps, dynDeps) <- runCommand depsCmd
-- See Note [Hooks Binary instances]
return $ (deps, Binary.encode $ ScopedArgument @User depsRes)
return $ (deps, Binary.encode $ ScopedArgument @User dynDeps)

-- | Project out the command for running the rule, passing in the result of
-- the dependency computation if there was one.
Expand Down

0 comments on commit 4d05377

Please sign in to comment.