installing non-haskell binaries with cabal
duncan.coutts at worc.ox.ac.uk
Mon Jun 9 18:36:19 EDT 2008
On Mon, 2008-06-09 at 23:35 +0200, Misha Aizatulin wrote:
> I would like to distribute a shell script as part of my haskell
> project. How can I tell cabal to install the script as an executable?
At the moment there is no easy way of doing that. It can be installed as
a data file pretty easily but not into the $bindir.
You'd have to write a custom Setup.hs script and change the postInst
hook. Use LocalBuildInfo.absoluteInstallDirs to get the bindir.
More information about the Libraries