path: root/executables
diff options
authorJoey Hess2018-04-22 12:15:35 -0400
committerJoey Hess2018-04-22 12:19:40 -0400
commitd8d2faece72eabd18c2ff303e5fb63c3a69961f6 (patch)
treee4fba26d18e3db8b52a94d80aff21413b642c67d /executables
parent57ec3e2451ad7dfa70d4a1b522259e0036e3e6f2 (diff)
separate Hs-Source-Dirs for binaries
This is a trick I only just learned about, see 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.
Diffstat (limited to 'executables')
2 files changed, 7 insertions, 0 deletions
diff --git a/executables/propellor-config.hs b/executables/propellor-config.hs
new file mode 120000
index 00000000..e3af968e
--- /dev/null
+++ b/executables/propellor-config.hs
@@ -0,0 +1 @@
+../config.hs \ No newline at end of file
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