Correctly provision build tools in all situations
[cabal.git] / cabal-testsuite / PackageTests / BuildToolPaths / pbts / exe / Main.hs
blob5378b16fc69f5f2194be04b0a424e7543326269c
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 putStrLn "Running exe..."
28 callCustomPp "custom-pp1"
29 callCustomPp "custom-pp2"