Skip to content
Snippets Groups Projects
Commit 463fc49d authored by Judah Jacobson's avatar Judah Jacobson
Browse files

Add a flag to disable the example executable (and test).

GHC's build currently can't handle packages with both a library and
a binary.  Help out by allowing a build to disable the executable,
which is only needed for the test.  (So disable the test as well.)

Also bump the version to 0.8.0.1.
parent ff19768a
No related branches found
No related tags found
No related merge requests found
Changed in version 0.8.0.1:
* Add a Cabal flag to disable the example executable as well as
the test that uses it.
Changed in version 0.8.0.0:
* Breaking changes:
* Add a `MonadFail` instance for `InputT`.
......
Name: haskeline
Cabal-Version: >=1.10
Version: 0.8.0.0
Version: 0.8.0.1
Category: User Interfaces
License: BSD3
License-File: LICENSE
......@@ -38,6 +38,13 @@ flag terminfo
Default: True
Manual: True
-- Help the GHC build by making it possible to disable the extra binary.
-- TODO: Make GHC handle packages with both a library and an executable.
flag examples
Description: Enable executable components used for tests.
Default: True
Manual: True
Library
-- We require ghc>=7.4.1 (base>=4.5) to use the base library encodings, even
-- though it was implemented in earlier releases, due to GHC bug #5436 which
......@@ -117,8 +124,12 @@ test-suite haskeline-tests
hs-source-dirs: tests
Default-Language: Haskell98
if os(windows)
if os(windows) {
buildable: False
}
if !flag(examples) {
buildable: False
}
Main-Is: Unit.hs
Build-depends: base, containers, text, bytestring, HUnit, process, unix
Other-Modules: RunTTY, Pty
......@@ -126,6 +137,9 @@ test-suite haskeline-tests
-- The following program is used by unit tests in `tests` executable
Executable haskeline-examples-Test
if !flag(examples) {
buildable: False
}
Build-depends: base, containers, haskeline
Default-Language: Haskell2010
hs-source-dirs: examples
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment