I always create a sandbox for my tools, for example, hoogle , pointfree , haddock , ghc-mod , hlint , shake and stylish-haskell . Just follow these steps:
- Create a bonded sandbox with
cabal sandbox init in your chosen location. - Run
cabal install [pkg1 [pkg2 ...]] - After completion, copy the necessary executable files from the
.cabal-sandbox/bin folder to the ~/.cabal/bin/ . - Run
cabal sandbox delete to remove a very large sandbox that you no longer need.
These executables are usually completely self-contained, so you can create them based on the requests they request in the sandbox, and then move them to where you want. This, of course, helps maintain the integrity of your system and resolve conflicts.
source share