Skip to content

Commit

Permalink
Remove library stanza
Browse files Browse the repository at this point in the history
If the library stanza is removed the package is not registered with ghc-pkg.
This prevents the cabal's resolver from using the incomplete set of
build-depends that ghc-pkg knows about. `./test.sh` no longer exhibits the bug
described in haskell/cabal#1896.
  • Loading branch information
benarmston committed Jun 7, 2014
1 parent c1abbcb commit 8b7e902
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions foo/foo.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,6 @@ build-type: Simple
license: MIT
synopsis: Has both libarary and executable stanzas both of which have dependencies.

library
build-depends:
base >=4.4 && <5
hs-source-dirs: src

executable foo
build-depends:
base >=4 && <5,
Expand Down

0 comments on commit 8b7e902

Please sign in to comment.