From d8d2faece72eabd18c2ff303e5fb63c3a69961f6 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Sun, 22 Apr 2018 12:15:35 -0400 Subject: separate Hs-Source-Dirs for binaries This is a trick I only just learned about, see https://stackoverflow.com/questions/6711151/how-to-avoid-recompiling-in-this-cabal-file#6711739 Significantly increased propellor build speed when your config.hs is in a fork of the propellor repository, by avoiding redundant builds of propellor library. Also avoids needing to list all the build deps 3 times. Also avoids cabal 2.x wanting every module to be listed 3 times. Note that the bulk of wrapper.hs had to move into the propellor library, since that code depended on stuff not exposed by the library. This commit was sponsored by Henrik Riomar on Patreon. --- executables/wrapper.hs | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 executables/wrapper.hs (limited to 'executables/wrapper.hs') diff --git a/executables/wrapper.hs b/executables/wrapper.hs new file mode 100644 index 00000000..3a6cee3a --- /dev/null +++ b/executables/wrapper.hs @@ -0,0 +1,6 @@ +module Main where + +import Propellor.Wrapper + +main :: IO () +main = runWrapper -- cgit v1.2.3