@@ -417,7 +417,7 @@ ppExplanation UncommonBSD4 =
417
417
++ " refers to the old 4-clause BSD license with the advertising "
418
418
++ " clause. 'BSD3' refers the new 3-clause BSD license."
419
419
ppExplanation (UnknownLicenseVersion lic known) =
420
- " 'license: " ++ prettyShow ( lic) ++ " ' is not a known "
420
+ " 'license: " ++ prettyShow lic ++ " ' is not a known "
421
421
++ " version of that license. The known versions are "
422
422
++ commaSep (map prettyShow known)
423
423
++ " . If this is not a mistake and you think it should be a known "
@@ -956,7 +956,7 @@ checkExecutable pkg exe =
956
956
-- This check does not apply to scripts.
957
957
, check (package pkg /= fakePackageId
958
958
&& not (null (modulePath exe))
959
- && ( not $ fileExtensionSupportedLanguage $ modulePath exe)) $
959
+ && not ( fileExtensionSupportedLanguage $ modulePath exe)) $
960
960
PackageBuildImpossible NoHsLhsMain
961
961
962
962
, checkSpecVersion pkg CabalSpecV1_18
@@ -1053,7 +1053,7 @@ checkFields pkg =
1053
1053
check (not . FilePath.Windows. isValid . prettyShow . packageName $ pkg) $
1054
1054
PackageDistInexcusable (InvalidNameWin pkg)
1055
1055
1056
- , check (( isPrefixOf " z-" ) . prettyShow . packageName $ pkg) $
1056
+ , check (isPrefixOf " z-" . prettyShow . packageName $ pkg) $
1057
1057
PackageDistInexcusable ZPrefix
1058
1058
1059
1059
, check (isNothing (buildTypeRaw pkg) && specVersion pkg < CabalSpecV2_2 ) $
@@ -1159,7 +1159,7 @@ checkFields pkg =
1159
1159
, isNoVersion vr ]
1160
1160
1161
1161
internalLibraries =
1162
- map (maybe (packageName pkg) ( unqualComponentNameToPackageName) . libraryNameString . libName)
1162
+ map (maybe (packageName pkg) unqualComponentNameToPackageName . libraryNameString . libName)
1163
1163
(allLibraries pkg)
1164
1164
1165
1165
internalExecutables = map exeName $ executables pkg
@@ -1238,7 +1238,7 @@ checkOldLicense pkg lic = catMaybes
1238
1238
, check (lic == BSD4 ) $
1239
1239
PackageDistSuspicious UncommonBSD4
1240
1240
1241
- , case unknownLicenseVersion ( lic) of -- xxx qua elimina parentesi?
1241
+ , case unknownLicenseVersion lic of
1242
1242
Just knownVersions -> Just $
1243
1243
PackageDistSuspicious (UnknownLicenseVersion lic knownVersions)
1244
1244
_ -> Nothing
@@ -1662,7 +1662,7 @@ checkCabalVersion pkg =
1662
1662
PackageBuildWarning CVDefaultLanguage
1663
1663
1664
1664
, check (specVersion pkg >= CabalSpecV1_10 && specVersion pkg < CabalSpecV3_4
1665
- && ( any isNothing (buildInfoField defaultLanguage) )) $
1665
+ && any isNothing (buildInfoField defaultLanguage)) $
1666
1666
PackageBuildWarning CVDefaultLanguageComponent
1667
1667
1668
1668
, checkVersion CabalSpecV1_18
@@ -1694,7 +1694,7 @@ checkCabalVersion pkg =
1694
1694
1695
1695
-- check use of extensions field
1696
1696
, check (specVersion pkg >= CabalSpecV1_10
1697
- && ( any (not . null ) (buildInfoField oldExtensions) )) $
1697
+ && any (not . null ) (buildInfoField oldExtensions)) $
1698
1698
PackageBuildWarning CVExtensionsDeprecated
1699
1699
1700
1700
, checkVersion CabalSpecV3_0 (any (not . null )
@@ -1961,10 +1961,10 @@ checkDevelopmentOnlyFlagsOptions :: String -> [String] -> [PackageCheck]
1961
1961
checkDevelopmentOnlyFlagsOptions fieldName ghcOptions =
1962
1962
catMaybes [
1963
1963
1964
- check ( has_Werror) $
1964
+ check has_Werror $
1965
1965
PackageDistInexcusable (WErrorUnneeded fieldName)
1966
1966
1967
- , check ( has_J) $
1967
+ , check has_J $
1968
1968
PackageDistInexcusable (JUnneeded fieldName)
1969
1969
1970
1970
, checkFlags [" -fdefer-type-errors" ] $
@@ -2130,9 +2130,9 @@ checkCabalFileBOM ops = do
2130
2130
-- But this can be an issue, see #3552 and also when
2131
2131
-- --cabal-file is specified. So if you can't find the file,
2132
2132
-- just don't bother with this check.
2133
- Left _ -> return $ Nothing
2133
+ Left _ -> return Nothing
2134
2134
Right pdfile -> (flip check pc . BS. isPrefixOf bomUtf8)
2135
- `liftM` ( getFileContents ops pdfile)
2135
+ `liftM` getFileContents ops pdfile
2136
2136
where pc = PackageDistInexcusable (BOMStart pdfile)
2137
2137
2138
2138
where
0 commit comments