– version 188.8.131.52.
curl -f https://downloads.haskell.org/~ghcup/0.1.9/i386-linux-ghcup-0.1.9 > ~/ghcup chmod +x ~/ghcup
Then to install cabal it is a simple matter of
~/ghcup install cabal 184.108.40.206
The binary that it installs will end up at
~/.ghcup/bin/cabal-220.127.116.11 and a symlink to it will probably be created at
Suppose I have a package called
package1 in a local source directory and whose cabal file is at
/home/me/package1/package1.cabal; I want to use it in another local package I’m developing whose cabal file is
I achieve this by adding an
optional-packages stanza to
cabal.project, as follows.
/home/me/package2/cabal.project already exists
just add the following line
/home/me/package2/cabal.project does not yet exist
/home/me/package2/cabal.project containing the following
packages: *.cabal optional-packages: /home/me/package1/package1.cabal
It is vital that the “
packages: *.cabal” line be included otherwise your project defaults to containing no packages at all. This default doesn’t seem to make any sense, but there it is.
cabal install --libdoesn’t seem to work
cabal install --lib seems like it ought to support use cases like this, I’ve never been able to get it to work.