Un-ignore .bat files
[cabal.git] / cabal-testsuite / PackageTests / AutogenModulesToggling / test.cabal
blob1465ab8aa386ab4d8d2c66176a928a10e3d2df74
1 cabal-version: 3.0
3 name: test
4 version: 0.1
5 category: Test
6 maintainer: S
7 synopsis: Test input
8 description: Test input
9 license: BSD-3-Clause
11 extra-source-files:
12   src-inputs/**/*.hgen
14 build-type: Custom
16 custom-setup
17   setup-depends: Cabal >= 3.9, base, directory
19 flag generate
20   description:
21     Generate files instead of using pregenerated ones
22   default:
23     False
24   manual:
25     True
27 library
28   exposed-modules:
29     Lib
30     Generated
32   hs-source-dirs:
33     src
35   if flag(generate)
36     hs-source-dirs:
37       src-inputs
38     autogen-modules:
39       Generated
40     -- We don’t use any tools in this case but they’ll have to
41     -- go here
42     -- build-tool-depends:
43     --   alex:alex
44   else
45     hs-source-dirs:
46       gen
48   build-depends: base > 4
49   default-language: Haskell2010
51 executable autogen-toggle-test
52   main-is: Main.hs
53   hs-source-dirs: .
54   default-language: Haskell2010
55   build-depends:
56     , base > 4
57     , test