summaryrefslogtreecommitdiff
path: root/Haskell-book/24/language-dot/Setup.hs
blob: dba3cdf283aade22f07f5b1fd45746562f5a0191 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
module Main where

import Distribution.Simple (defaultMainWithHooks, simpleUserHooks, runTests)
import System.Process      (system)

main :: IO ()
main =
    defaultMainWithHooks $ simpleUserHooks { runTests = runTests' }
  where
    runTests' _ _ _ _ = do
        system "runhaskell -DTEST -i./src src/test.hs"
        return ()