When I run cabal install [pkg]
and pkg is a command line executable program instead of a library, it often warns me with this message: "Warning: The following packages are likely to be broken by the reinstalls"
I always use the --force-reinstalls
option to proceed.
But since I'm installing an executable and NOT a library, is there a way to run cabal install
to isolate the build process in a cabal sandbox, and then install the executable in ~/.cabal/bin
? Or is this something I need to write a custom bash script for?