Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: ae708348c8
Fetching contributors…

Cannot retrieve contributors at this time

26 lines (19 sloc) 0.613 kb
#!/usr/bin/env runhaskell
import Distribution.Simple
import Control.Monad
import System.Directory
import FindBench
import FindConfig
main = defaultMainWithHooks simpleUserHooks {postConf = writeLocalConf, postClean = deleteLocalConf}
writeLocalConf _ _ _ _ = do
findLocalConfigs configDir
findLocalBenchmarks benchmarkDir
deleteLocalConf _ _ _ _ = do
deleteIfExists (localConfigsFileName configDir)
deleteIfExists :: FilePath -> IO ()
deleteIfExists f = do
e <- doesFileExist f
when e (removeFile f)
configDir, benchmarkDir :: FilePath
configDir = "config"
benchmarkDir = "benchmarks"
Jump to Line
Something went wrong with that request. Please try again.