I am new to Haskell, and am trying to install a package (scan) using cabal-install. I want it to install all files under the directory ${HOME}/nonvc, like in ~/nonvc/share and ~/nonvc/bin. So I specified install-dirs user -- prefix: /home/raghu/nonvc in ~/.cabal/config. But when I do `cabal install scan', it still installs the files in ~/.cabal/bin and ~/.cabal/share. How do I make cabal install these files in ~/nonvc? Thanks and regards, Raghavendra. -- N. Raghavendra <raghu@mri.ernet.in> | http://www.retrotexts.net/ Harish-Chandra Research Institute | http://www.mri.ernet.in/ See message headers for contact and OpenPGP information.
On 22 September 2010 15:55, N. Raghavendra <raghu@mri.ernet.in> wrote:
I am new to Haskell, and am trying to install a package (scan) using cabal-install. I want it to install all files under the directory ${HOME}/nonvc, like in ~/nonvc/share and ~/nonvc/bin. So I specified
install-dirs user -- prefix: /home/raghu/nonvc
In Haskell, -- is the start of a single-line comment (like // in Java), and cabal-install has taken that for its configuration file (rather than # like in most config files). So remove the -- from the front of the line to get it working. -- Ivan Lazar Miljenovic Ivan.Miljenovic@gmail.com IvanMiljenovic.wordpress.com
At 2010-09-22T16:11:34+10:00, Ivan Lazar Miljenovic wrote:
So remove the -- from the front of the line to get it working.
Thanks very much. That works. I'd read the header in the config file which said that lines beginning with `--' were comments, but somehow missed uncommenting the line I wanted. Regards, Raghavendra. -- N. Raghavendra <raghu@mri.ernet.in> | http://www.retrotexts.net/ Harish-Chandra Research Institute | http://www.mri.ernet.in/ See message headers for contact and OpenPGP information.
participants (2)
-
Ivan Lazar Miljenovic -
N. Raghavendra