Skip to content

Commit 36ab7a0

Browse files
authored
Merge pull request #6858 from phadej/6853-test
Add test for #6853
2 parents 4d64ad0 + 0140342 commit 36ab7a0

File tree

5 files changed

+30
-0
lines changed

5 files changed

+30
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# cabal v2-build
2+
Resolving dependencies...
3+
Build profile: -w ghc-<GHCVER> -O1
4+
In order, the following will be built:
5+
- pkg-foo-0 (lib) (first run)
6+
Configuring library for pkg-foo-0..
7+
Preprocessing library for pkg-foo-0..
8+
Building library for pkg-foo-0..
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
packages: pkg-foo/
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import Test.Cabal.Prelude
2+
main = cabalTest $
3+
cabal "v2-build" ["all"]
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module Foo where
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
cabal-version: 2.2
2+
name: pkg-foo
3+
version: 0
4+
5+
flag foo-bar
6+
description: Should be toggled
7+
manual: False
8+
default: False
9+
10+
library
11+
default-language: Haskell2010
12+
build-depends: base
13+
exposed-modules: Foo
14+
15+
-- this says "toggle me"
16+
if !flag(foo-bar)
17+
build-depends: base <0

0 commit comments

Comments
 (0)