Skip to content

Commit 18221b2

Browse files
committed
Follow hlint suggestion: redundant bracket
1 parent 049983f commit 18221b2

5 files changed

Lines changed: 6 additions & 7 deletions

File tree

.hlint.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
- ignore: {name: "Hoist not"} # 16 hints
66
- ignore: {name: "Move filter"} # 4 hints
77
- ignore: {name: "Redundant $!"} # 3 hints
8-
- ignore: {name: "Redundant bracket"} # 4 hints
98
- ignore: {name: "Redundant guard"} # 1 hint
109
- ignore: {name: "Redundant if"} # 6 hints
1110
- ignore: {name: "Redundant lambda"} # 16 hints

Cabal/src/Distribution/Simple/Register.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -717,7 +717,7 @@ relocatableInstalledPackageInfo pkg abi_hash lib lbi clbi pkgroot =
717717
bi = libBuildInfo lib
718718

719719
installDirs =
720-
(("${pkgroot}" </>) . shortRelativePath (getSymbolicPath pkgroot)) <$> absoluteComponentInstallDirs pkg lbi (componentUnitId clbi) NoCopyDest
720+
("${pkgroot}" </>) . shortRelativePath (getSymbolicPath pkgroot) <$> absoluteComponentInstallDirs pkg lbi (componentUnitId clbi) NoCopyDest
721721

722722
-- -----------------------------------------------------------------------------
723723
-- Unregistration

cabal-install/src/Distribution/Client/Freeze.hs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,8 @@ pruneInstallPlan installPlan pkgSpecifiers =
300300
freezePackages :: Package pkg => Verbosity -> GlobalFlags -> [pkg] -> IO ()
301301
freezePackages verbosity globalFlags pkgs = do
302302
pkgEnv <-
303-
(createPkgEnv . addFrozenConstraints) <$> loadUserConfig
303+
createPkgEnv . addFrozenConstraints
304+
<$> loadUserConfig
304305
verbosity
305306
""
306307
(flagToMaybe . globalConstraintsFile $ globalFlags)

cabal-install/src/Distribution/Client/ProjectPlanning.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1271,7 +1271,7 @@ getPackageSourceHashes verbosity withRepoCtx solverPlan = do
12711271
--
12721272
hashesFromRepoMetadata <-
12731273
Sec.uncheckClientErrors -- TODO: [code cleanup] wrap in our own exceptions
1274-
( (Map.fromList . concat)
1274+
( Map.fromList . concat
12751275
<$> sequence
12761276
-- Reading the repo index is expensive so we group the packages by repo
12771277
[ repoContextWithSecureRepo repoctx repo $ \secureRepo ->

cabal-install/tests/UnitTests/Distribution/Client/InstallPlan.hs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -236,9 +236,8 @@ arbitraryInstallPlan
236236
-> Gen (InstallPlan.GenericInstallPlan ipkg srcpkg)
237237
arbitraryInstallPlan mkIPkg mkSrcPkg ipkgProportion graph = do
238238
(ipkgvs, srcpkgvs) <-
239-
( bimap (map fst) (map fst)
240-
. partition snd
241-
) <$> sequenceA
239+
bimap (map fst) (map fst) . partition snd
240+
<$> sequenceA
242241
[ do
243242
isipkg <-
244243
if isRoot

0 commit comments

Comments
 (0)