File: Setup.lhs

package info (click to toggle)
haskell-permutation 0.5.0.5-3
  • links: PTS
  • area: main
  • in suites: buster
  • size: 208 kB
  • sloc: haskell: 2,055; makefile: 19
file content (14 lines) | stat: -rw-r--r-- 387 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/env runhaskell
> import Distribution.Simple
> import System.Cmd
> import System.Exit ( ExitCode(..) )
>
> testing _ _ _ _ = do
>     err <- system "make -C tests"
>     system "make -s -C tests clean"
>     if err /= ExitSuccess
>         then ioError $ userError $ "failed"
>         else return ()
>
> main = defaultMainWithHooks simpleUserHooks
>        {runTests=testing}