language/haskell: optionally add args to install.

This commit is contained in:
Mike McQuaid 2015-01-17 19:29:36 +01:00
parent 6a6b56127c
commit 3a3f56e9a3

View File

@ -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