aboutsummaryrefslogtreecommitdiff
path: root/Build/TestConfig.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2017-12-14 12:46:57 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2017-12-14 12:46:57 -0400
commit3a0bd261d9cfd395ed23ff43515523e6c6658c33 (patch)
tree9186c5daf386ba8e76c47ec869a737344a5a74d1 /Build/TestConfig.hs
parentac4b4a812da85b46e7d656b12d9ff5568ef706fd (diff)
fold Build/SysConfig.hs into BuildInfo via include
This avoids warnings from stack about the module not being listed in the cabal file. So, the generated file is also renamed to Build/SysConfig. Note that the setup program seems to be cached despite these changes; I had to cabal clean to get cabal to update it so that Build/SysConfig was written. This commit was sponsored by Jochen Bartl on Patreon.
Diffstat (limited to 'Build/TestConfig.hs')
-rw-r--r--Build/TestConfig.hs5
1 files changed, 2 insertions, 3 deletions
diff --git a/Build/TestConfig.hs b/Build/TestConfig.hs
index f6ad2df6f..2f7213f46 100644
--- a/Build/TestConfig.hs
+++ b/Build/TestConfig.hs
@@ -1,4 +1,4 @@
-{- Tests the system and generates Build.SysConfig.hs. -}
+{- Tests the system and generates SysConfig. -}
{-# OPTIONS_GHC -fno-warn-tabs #-}
@@ -42,12 +42,11 @@ instance Show Config where
valuetype (MaybeBoolConfig _) = "Maybe Bool"
writeSysConfig :: [Config] -> IO ()
-writeSysConfig config = writeFile "Build/SysConfig.hs" body
+writeSysConfig config = writeFile "Build/SysConfig" body
where
body = unlines $ header ++ map show config ++ footer
header = [
"{- Automatically generated. -}"
- , "module Build.SysConfig where"
, ""
]
footer = []