Fixed clay css output issue

Added the --verbose=0 option when "cabal run gencss compact" is run from
src/site.hs. This stops cabal from outputting compiler/success messages
to the front of the generated css file.

Signed-off-by: Collin J. Doering <collin.doering@rekahsoft.ca>
This commit is contained in:
Collin J. Doering 2015-01-10 16:31:10 -05:00
parent 7b08488815
commit 81c675f7b4

View File

@ -132,7 +132,7 @@ main = do
(_, hout, _, ph) <- createProcess $ shell "cabal build gencss"
exitCode <- waitForProcess ph
if exitCode == ExitSuccess
then readProcess "cabal" ["run", "gencss", "compact"] ""
then readProcess "cabal" ["run", "--verbose=0", "gencss", "compact"] ""
else case hout of
Nothing -> fail "Error running 'cabal build gencss'"
Just hout' -> hGetContents hout' >>= fail)