-
Notifications
You must be signed in to change notification settings - Fork 696
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add cabal init golden test exercise --libandexe behaviour.
The key item captured in this test is that when 'cabal init --libandexe' is run in an empty directory it will result in a dependency on the library from the executable in the form of 'build-depends = <package-name>' but with no version constraints since they are implied by the version of the current package.
- Loading branch information
Showing
2 changed files
with
46 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
cabal-version: 2.4 | ||
name: foo | ||
version: 3.2.1 | ||
synopsis: The foo package | ||
homepage: https://github.com/foo/foo | ||
license: NONE | ||
author: me | ||
maintainer: [email protected] | ||
category: SomeCat | ||
extra-source-files: CHANGELOG.md | ||
|
||
library | ||
exposed-modules: MyLib | ||
build-depends: base ^>=4.13.0.0, containers ^>=5.7.0.0, unordered-containers ^>=2.7.0.0 | ||
hs-source-dirs: src | ||
default-language: Haskell2010 | ||
|
||
executable foo | ||
main-is: Main.hs | ||
build-depends: base ^>=4.13.0.0, containers ^>=5.7.0.0, unordered-containers ^>=2.7.0.0, foo | ||
hs-source-dirs: app | ||
default-language: Haskell2010 |