Skip to content

Commit

Permalink
Merge pull request #3825 from 23Skidoo/check-extra-doc-files
Browse files Browse the repository at this point in the history
D.PD.Check: extra-doc-files only allowed when Cabal >= 1.18.
  • Loading branch information
23Skidoo authored Sep 12, 2016
2 parents 5289f17 + 5b9dfcb commit 00e9a09
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 6 additions & 0 deletions Cabal/Distribution/PackageDescription/Check.hs
Original file line number Diff line number Diff line change
Expand Up @@ -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 $
Expand Down
1 change: 0 additions & 1 deletion Cabal/Distribution/Types/BuildType.hs
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,3 @@ instance Text BuildType where
"Custom" -> Custom
"Make" -> Make
_ -> UnknownBuildType name

0 comments on commit 00e9a09

Please sign in to comment.