Correctly provision build tools in all situations
[cabal.git] / cabal-testsuite / PackageTests / BuildToolPaths / pbts / bench / Main.hs
blobf987753f65e4539779861a25bbe6bd3cb2626f14
1 {-# LANGUAGE TemplateHaskell #-}
3 module Main ( main ) where
5 -- template-haskell
6 import Language.Haskell.TH
7 ( runIO )
9 -- pbts
10 import Call
11 ( callCustomPp )
13 --------------------------------------------------------------------------------
15 -- Check that we can invoke the custom preprocessor, and that it finds its
16 -- data directory, both at compile-time and at run-time.
18 $( do
19 runIO $ do
20 callCustomPp "custom-pp1"
21 callCustomPp "custom-pp2"
22 return []
25 main :: IO ()
26 main = do
27 callCustomPp "custom-pp1"
28 callCustomPp "custom-pp2"