diff options
| author | Mike McQuaid | 2015-01-17 19:29:36 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2015-01-17 19:29:36 +0100 |
| commit | 3a3f56e9a3a6257db071f85ca189a27ad18bd85e (patch) | |
| tree | b1b77d138861205d648828aee7f1f5d856f8d969 /Library | |
| parent | 6a6b56127c0c25a8de51a305c6c94ad5bf11447b (diff) | |
| download | brew-3a3f56e9a3a6257db071f85ca189a27ad18bd85e.tar.bz2 | |
language/haskell: optionally add args to install.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/language/haskell.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Library/Homebrew/language/haskell.rb b/Library/Homebrew/language/haskell.rb index c4d964682..97eaaa087 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 |
