aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2015-01-17 19:29:36 +0100
committerMike McQuaid2015-01-17 19:29:36 +0100
commit3a0163c0d54419e4e93d586af2fc4baa91d55f47 (patch)
treec72de14dddb5265470b2844afdf28f5604ca919b /Library
parentd7b4e7ced4c1b3e6c458e831c68126f2737b79ac (diff)
downloadhomebrew-3a0163c0d54419e4e93d586af2fc4baa91d55f47.tar.bz2
language/haskell: optionally add args to install.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/language/haskell.rb6
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