1 name: internal-preprocessor-test
3 synopsis: Internal custom preprocessor example.
4 description: See https://github.com/haskell/cabal/issues/1541#issuecomment-30155513
6 author: Mikhail Glushenkov
7 maintainer: mikhail.glushenkov@gmail.com
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
27 build-tools: my-custom-preprocessor
28 -- ^ Note the internal dependency.
29 default-language: Haskell2010
31 executable hello-world
33 build-depends: base, internal-preprocessor-test
34 default-language: Haskell2010