aboutsummaryrefslogtreecommitdiff
path: root/tests/Spec.hs
blob: b1a0313e89df1dbf3678b37719446b165cb3b89c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
import Distribution.Helper
import System.Environment.Extra (lookupEnv)
import System.Posix.Env (setEnv)
import Data.Maybe
import Data.Functor

main :: IO ()
main = do
  flip (setEnv "HOME") True =<< fromMaybe "/tmp" <$> lookupEnv "TMPDIR"
  writeAutogenFiles "./dist"