Skip to content

Commit 6f778e5

Browse files
authored
Fix warning message for cabal-version field (see #5108)
1 parent 06810e2 commit 6f778e5

File tree

1 file changed

+4
-2
lines changed
  • Cabal/Distribution/PackageDescription

1 file changed

+4
-2
lines changed

Cabal/Distribution/PackageDescription/Check.hs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1115,12 +1115,14 @@ checkCabalVersion pkg =
11151115
++ "range syntax rather than a simple version number. Use "
11161116
++ "'cabal-version: >= " ++ display (specVersion pkg) ++ "'."
11171117

1118+
-- check syntax of cabal-version field
11181119
, check (specVersion pkg >= mkVersion [1,12]
11191120
&& not simpleSpecVersionSyntax) $
11201121
(if specVersion pkg >= mkVersion [2,0] then PackageDistSuspicious else PackageDistSuspiciousWarn) $
11211122
"Packages relying on Cabal 1.12 or later should specify a "
1122-
++ "version range of the form 'cabal-version: x.y'. Use "
1123-
++ "'cabal-version: " ++ display (specVersion pkg) ++ "'."
1123+
++ "specific version of the Cabal spec of the form "
1124+
++ "'cabal-version: x.y'. "
1125+
++ "Use 'cabal-version: " ++ display (specVersion pkg) ++ "'."
11241126

11251127
-- check use of test suite sections
11261128
, checkVersion [1,8] (not (null $ testSuites pkg)) $

0 commit comments

Comments
 (0)