YamlReference-0.1: Setup.hs
import Distribution.Simple
import System.Cmd
main = defaultMainWithHooks $ defaultUserHooks { runTests = run, preClean = clean }
where run _ _ _ _ = system $ "dist/build/yaml2yeast-test/yaml2yeast-test tests"
clean _ _ = do
system $ "rm -f tests/*.error"
return (Nothing, [])