Hi,
My dahastes.cabal:
...
executable dahastes
import: common-options
hs-source-dirs: app
main-is: Main.hs
build-depends:
, dahastes
, turtle
, text
, foldl
, extra
ghc-options: -threaded -rtsopts -with-rtsopts=-N
...
I’ve been trying this:
!?master ~/spaces/haskell/dahastes> cabal install exe:dahastes --installdir="~/.local/bin"
Wrote tarball sdist to
/home/alexey/spaces/haskell/dahastes/dist-newstyle/sdist/dahastes-0.tar.gz
Resolving dependencies...
Symlinking 'dahastes' to '~/.local/bin/dahastes'
!?master ~/spaces/haskell/dahastes> ls
'~' app bench BUILDME.md cabal.project CHANGELOG.md dahastes.cabal dist-newstyle flake.lock flake.nix hie.yaml LICENSE README.md src test
!?master ~/spaces/haskell/dahastes> ls '~'
!?master ~/spaces/haskell/dahastes> rm -rf '~'
Looks almost sensible, but I’ve got two problems:
- No symlink in
~/.local/bin
. No real surprise: I expected a binary in~/.local/bin
, and was promised a symlink to~/.local/bin
, God knows where. - It created an empty
'~'
directory in my project directory, which looks suspicious to me.
I hope my intention is clear: install a project executive to a common bin directory. What am I doing wrong?