Skip to content

Commit 1559b76

Browse files
committed
Adopt coding style
1 parent ba81d96 commit 1559b76

File tree

2 files changed

+5
-10
lines changed

2 files changed

+5
-10
lines changed

cabal-install/Distribution/Client/CmdShowBuildInfo.hs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
-- | cabal-install CLI command: build
1+
-- | cabal-install CLI command: new-show-build-info
22
--
33
module Distribution.Client.CmdShowBuildInfo (
44
-- * The @show-build-info@ CLI and action

cabal-install/main/Main.hs

+4-9
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@ buildActionForCommand commandUI verbosity (buildFlags, buildExFlags) extraArgs g
483483
configureAction verbosity distPref useSandbox noAddSource
484484
(buildNumJobs buildFlags) mempty [] globalFlags config
485485

486-
nixShell verbosity distPref globalFlags config $ do
486+
nixShell verbosity distPref globalFlags config $
487487
maybeWithSandboxDirOnSearchPath useSandbox $ buildForCommand
488488
commandUI verbosity config' distPref buildFlags extraArgs
489489

@@ -502,12 +502,7 @@ buildForCommand :: CommandUI BuildFlags
502502
-> [String]
503503
-> IO ()
504504
buildForCommand command verbosity config distPref buildFlags extraArgs =
505-
setupWrapper verbosity
506-
setupOptions
507-
Nothing
508-
command
509-
mkBuildFlags
510-
(const extraArgs)
505+
setupWrapper verbosity setupOptions Nothing command mkBuildFlags (const extraArgs)
511506
where
512507
setupOptions = defaultSetupScriptOptions { useDistPref = distPref }
513508

@@ -556,8 +551,8 @@ replAction (replFlags, buildExFlags) extraArgs globalFlags = do
556551
-- be done to support sandboxes.
557552
_ <-
558553
reconfigure configureAction
559-
verbosity distPref useSandbox noAddSource NoFlag
560-
mempty [] globalFlags config
554+
verbosity distPref useSandbox noAddSource NoFlag
555+
mempty [] globalFlags config
561556
let progDb = defaultProgramDb
562557
setupOptions = defaultSetupScriptOptions
563558
{ useCabalVersion = orLaterVersion $ mkVersion [1,18,0]

0 commit comments

Comments
 (0)