How to specify where to output the executable file in the Cabal file?

Is there a way to configure the directory that the compiled cabal install does, saved to?

I looked at http://www.haskell.org/cabal/users-guide/ for this information, but I find it hard to find.

+4
source share
2 answers

If you want to use a different installation path for a specific cabal install call, as melpomene said, you can use the command line options described at http://www.haskell.org/cabal/users-guide/installing-packages.html#installation- paths

If you want to change where cabal install places things as a general rule (rather than just changing the location for a specific package), see the ~/.cabal/config file indicates where everything goes. In the install-dirs user section, find the prefix , bindir and libdir . The default settings are commented out. Change them as needed.

+3
source

All Articles