Skip to content

Commit

Permalink
Add an executable to a library dependency in the new-freeze test.
Browse files Browse the repository at this point in the history
  • Loading branch information
grayjay committed Feb 12, 2018
1 parent 7fd0abc commit abba0dc
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ main = cabalTest $ withSourceCopy $
shouldExist freezeFile
assertFileDoesContain freezeFile "any.my-library-dep ==1.0"
assertFileDoesNotContain freezeFile "my-local-package"
assertFileDoesContain freezeFile "any.exe-dependency ==1.0"
where
assertUsesLatestDependency out = do
assertOutputContains "my-library-dep-2.0 (lib)" out
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
name: exe-dependency
version: 1.0
cabal-version: 1.20
build-type: Simple

library
build-depends: base
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,6 @@ library
build-depends: base
default-language: Haskell2010
exposed-modules: MyLibModule

executable exe
build-depends: exe-dependency

0 comments on commit abba0dc

Please sign in to comment.