Haskell::Cabal: fix overquoting of flags

Since `system` escapes its own spaces, cabal was interpreting
`--flags='webapp s3'` as `+'webapp +s3'` rather than `+webapp +s3`.

Closes #267.

Signed-off-by: ilovezfs <ilovezfs@icloud.com>
This commit is contained in:
ilovezfs 2016-05-21 01:09:17 -07:00
parent 0123e04fae
commit 7b2d1a5b08

View File

@ -81,7 +81,7 @@ module Language
# dependencies, and call cabal configure afterwards to set the flags again for compile
flags = ""
if options[:flags]
flags = "--flags='#{options[:flags].join(" ")}'"
flags = "--flags=#{options[:flags].join(" ")}"
end
args_and_flags = args