From c053c6a3edd4497157228cc6a5337bf80758b442 Mon Sep 17 00:00:00 2001 From: "Collin J. Doering" Date: Sat, 8 Dec 2018 17:56:14 -0500 Subject: [PATCH] Use stack to run gencss (clay pre-processed css) Signed-off-by: Collin J. Doering --- src/site.hs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/site.hs b/src/site.hs index 08ee4df..17f9a7c 100644 --- a/src/site.hs +++ b/src/site.hs @@ -140,12 +140,12 @@ main = do rulesExtraDependencies [clayDeps] $ create ["default.css"] $ do route idRoute compile $ makeItem =<< (unsafeCompiler $ do - (_, hout, _, ph) <- createProcess $ shell "cabal build gencss" + (_, hout, _, ph) <- createProcess $ shell "stack build blog-rekahsoft-ca:gencss" exitCode <- waitForProcess ph if exitCode == ExitSuccess - then readProcess "cabal" ["run", "--verbose=0", "gencss", "compact"] "" + then readProcess "stack" ["exec", "gencss", "--", "compact"] "" else case hout of - Nothing -> fail "Error running 'cabal build gencss'" + Nothing -> fail "Error running 'stack build blog-rekahsoft-ca:gencss'" Just hout' -> hGetContents hout' >>= fail) rulesExtraDependencies [manifestDeps] $ create ["manifest.appcache"] $ do