Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
Packages
Cabal
Commits
00e9a094
Commit
00e9a094
authored
Sep 12, 2016
by
Mikhail Glushenkov
Committed by
GitHub
Sep 12, 2016
Browse files
Merge pull request #3825 from 23Skidoo/check-extra-doc-files
D.PD.Check: extra-doc-files only allowed when Cabal >= 1.18.
parents
5289f179
5b9dfcb3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Cabal/Distribution/PackageDescription/Check.hs
View file @
00e9a094
...
...
@@ -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
$
...
...
Cabal/Distribution/Types/BuildType.hs
View file @
00e9a094
...
...
@@ -46,4 +46,3 @@ instance Text BuildType where
"Custom"
->
Custom
"Make"
->
Make
_
->
UnknownBuildType
name
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment