From 4c1e415bff1c85333120c59f800dd2f9a72043a9 Mon Sep 17 00:00:00 2001 From: ilovezfs Date: Mon, 22 Feb 2016 06:57:21 -0800 Subject: [PATCH] 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 --- Library/Homebrew/language/haskell.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/language/haskell.rb b/Library/Homebrew/language/haskell.rb index 17ea33fde4..8680df3a1e 100644 --- a/Library/Homebrew/language/haskell.rb +++ b/Library/Homebrew/language/haskell.rb @@ -81,7 +81,7 @@ module Language end args_and_flags = args - args_and_flags << flags + args_and_flags << flags unless flags.empty? # install dependencies in the sandbox cabal_install "--only-dependencies", *args_and_flags