(cabal check) Add "No internal name clash" test
[cabal.git] / cabal-testsuite / PackageTests / CustomPreProcess / internal-preprocessor-test.cabal
blobe70897a3b92b20f28bc6355e41af17dc41e35fb5
1 name:                internal-preprocessor-test
2 version:             0.1.0.0
3 synopsis:            Internal custom preprocessor example.
4 description:         See https://github.com/haskell/cabal/issues/1541#issuecomment-30155513
5 license:             GPL-3
6 author:              Mikhail Glushenkov
7 maintainer:          mikhail.glushenkov@gmail.com
8 category:            Testing
9 build-type:          Custom
10 cabal-version:       >=1.10
12 custom-setup
13   setup-depends: Cabal, base, process, filepath
15 -- Note that exe comes before the library. 
16 -- The reason is backwards compat: old versions of Cabal (< 1.18)
17 -- don't have a proper component build graph, so components are
18 -- built in declaration order.
19 executable             my-custom-preprocessor
20   main-is:             MyCustomPreprocessor.hs
21   build-depends:       base, directory
22   default-language:    Haskell2010
24 library
25   exposed-modules:     A
26   build-depends:       base
27   build-tools:         my-custom-preprocessor
28   -- ^ Note the internal dependency.
29   default-language:    Haskell2010
31 executable             hello-world
32   main-is:             Hello.hs
33   build-depends:       base, internal-preprocessor-test
34   default-language:    Haskell2010