Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions cabal-testsuite/PackageTests/Regression/T6853/cabal.out
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# cabal v2-build
Resolving dependencies...
Build profile: -w ghc-<GHCVER> -O1
In order, the following will be built:
- pkg-foo-0 (lib) (first run)
Configuring library for pkg-foo-0..
Preprocessing library for pkg-foo-0..
Building library for pkg-foo-0..
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
packages: pkg-foo/
3 changes: 3 additions & 0 deletions cabal-testsuite/PackageTests/Regression/T6853/cabal.test.hs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import Test.Cabal.Prelude
main = cabalTest $
cabal "v2-build" ["all"]
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module Foo where
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
cabal-version: 2.2
name: pkg-foo
version: 0

flag foo-bar
description: Should be toggled
manual: False
default: False

library
default-language: Haskell2010
build-depends: base
exposed-modules: Foo

-- this says "toggle me"
if !flag(foo-bar)
build-depends: base <0