diff --git a/Cabal/Distribution/PackageDescription/Check.hs b/Cabal/Distribution/PackageDescription/Check.hs index cccdec7683b..f85c8f6d5a9 100644 --- a/Cabal/Distribution/PackageDescription/Check.hs +++ b/Cabal/Distribution/PackageDescription/Check.hs @@ -985,6 +985,12 @@ checkCabalVersion pkg = ++ "different modules then list the other ones in the " ++ "'other-languages' field." + , checkVersion [1,18] + (not . null $ extraDocFiles pkg) $ + PackageDistInexcusable $ + "To use the 'extra-doc-files' field the package needs to specify " + ++ "at least 'cabal-version: >= 1.18'." + , checkVersion [1,23] (not (null (subLibraries pkg))) $ PackageDistInexcusable $ diff --git a/Cabal/Distribution/Types/BuildType.hs b/Cabal/Distribution/Types/BuildType.hs index bcd1123155f..48bd2cd99cf 100644 --- a/Cabal/Distribution/Types/BuildType.hs +++ b/Cabal/Distribution/Types/BuildType.hs @@ -46,4 +46,3 @@ instance Text BuildType where "Custom" -> Custom "Make" -> Make _ -> UnknownBuildType name -