haskell: fix empty flags build failures

Fixes a regression introduced by Homebrew/homebrew#47950 in 9e3ee3e causing build
failures with the error

  cabal: The file does not exist ''.

This will occur whenever the optional :flags key isn't in the options
hash passed to install_cabal_package.

Closes Homebrew/homebrew#49425.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
ilovezfs 2016-02-22 06:57:21 -08:00 committed by Mike McQuaid
parent 1208e26c74
commit 4c1e415bff

View File

@ -81,7 +81,7 @@ module Language
end end
args_and_flags = args args_and_flags = args
args_and_flags << flags args_and_flags << flags unless flags.empty?
# install dependencies in the sandbox # install dependencies in the sandbox
cabal_install "--only-dependencies", *args_and_flags cabal_install "--only-dependencies", *args_and_flags