git.iko.soy/typeable/cabal2nix
on master help sign in
generate-cabal-file.hs: all executables depend on the cabal2nix library
9a0b83fPeter Simons
generate-cabal-file.hs+2−2
@@ -93,10 +93,10 @@ commonTestOptions = buildDepends
93 ] : commonBuildOptions
93 ] : commonBuildOptions
94
94
95mkExecutable :: NonEmptyString -> [ExecutableField] -> Section
95mkExecutable :: NonEmptyString -> [ExecutableField] -> Section
96−mkExecutable exe opt = executable exe $ mainIs (exe++".hs") : opt ++ commonBuildOptions
96+mkExecutable exe opt = executable exe $ mainIs (exe++".hs") : buildDepends [unconstrained "cabal2nix"] : opt ++ commonBuildOptions
97
97
98mkTest :: NonEmptyString -> [TestSuiteField] -> Section
98mkTest :: NonEmptyString -> [TestSuiteField] -> Section
99−mkTest test opt = testSuite test $ exitcodeFields (test++".hs") ++ opt ++ hsSourceDirs ["test"] : commonTestOptions
99+mkTest test opt = testSuite test $ exitcodeFields (test++".hs") ++ buildDepends [unconstrained "cabal2nix"] : opt ++ hsSourceDirs ["test"] : commonTestOptions
100
100
101main :: IO ()
101main :: IO ()
102main = do
102main = do