From 3a3f56e9a3a6257db071f85ca189a27ad18bd85e Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Sat, 17 Jan 2015 19:29:36 +0100 Subject: [PATCH] language/haskell: optionally add args to install. --- Library/Homebrew/language/haskell.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Library/Homebrew/language/haskell.rb b/Library/Homebrew/language/haskell.rb index c4d9646829..97eaaa0878 100644 --- a/Library/Homebrew/language/haskell.rb +++ b/Library/Homebrew/language/haskell.rb @@ -54,12 +54,12 @@ module Language rm_rf lib end - def install_cabal_package + def install_cabal_package args=[] cabal_sandbox do # the dependencies are built first and installed locally, and only the # current package is actually installed in the destination dir - cabal_install "--only-dependencies" - cabal_install "--prefix=#{prefix}" + cabal_install "--only-dependencies", *args + cabal_install "--prefix=#{prefix}", *args end cabal_clean_lib end