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
76d508d7
Commit
76d508d7
authored
Aug 16, 2005
by
ijones
Browse files
fixed test suite, added backward-compat checker for other-files
parent
2e6af48d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Distribution/PackageDescription.hs
View file @
76d508d7
...
...
@@ -686,7 +686,8 @@ testPkgDesc = unlines [
"Build-Depends: haskell-src, HUnit>=1.0.0-rain"
,
"Other-Modules: Distribution.Package, Distribution.Version,"
,
" Distribution.Simple.GHCPackageConfig"
,
"Extra-Source-Files: file1, file2"
,
"Other-files: file1, file2"
,
"Extra-Tmp-Files: file1, file2"
,
"C-Sources: not/even/rain.c, such/small/hands"
,
"HS-Source-Dirs: src, src2"
,
"Exposed-Modules: Distribution.Void, Foo.Bar"
,
...
...
@@ -724,7 +725,6 @@ testPkgDescAnswer =
synopsis
=
"a nice package!"
,
description
=
"a really nice package!"
,
category
=
"tools"
,
extraSrcFiles
=
[
"file1"
,
"file2"
],
buildDepends
=
[
Dependency
"haskell-src"
AnyVersion
,
Dependency
"HUnit"
(
UnionVersionRanges
(
ThisVersion
(
Version
[
1
,
0
,
0
]
[
"rain"
]))
...
...
@@ -732,6 +732,8 @@ testPkgDescAnswer =
testedWith
=
[(
GHC
,
AnyVersion
)],
maintainer
=
""
,
stability
=
"Free Text String"
,
extraTmpFiles
=
[
"file1"
,
"file2"
],
extraSrcFiles
=
[
"file1"
,
"file2"
],
library
=
Just
$
Library
{
exposedModules
=
[
"Distribution.Void"
,
"Foo.Bar"
],
...
...
Distribution/ParseUtils.hs
View file @
76d508d7
...
...
@@ -197,6 +197,8 @@ mkStanza ((n,xs):ys) =
let
fld''
=
map
toLower
fld'
fld
|
fld''
==
"hs-source-dir"
=
trace
"The field
\"
hs-source-dir
\"
is deprecated, please use hs-source-dirs."
"hs-source-dirs"
|
fld''
==
"other-files"
=
trace
"The field
\"
other-files
\"
is deprecated, please use extra-source-files."
"extra-source-files"
|
otherwise
=
fld''
ss
<-
mkStanza
ys
checkDuplField
fld
ss
...
...
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