[Haskell-beginners] Need help setting up development environment via ghcup
sudaraka at sudaraka.org
Tue Jul 28 08:11:33 UTC 2020
I have successfully installed `ghc` (8.8.4), `cabal-install` (184.108.40.206) via
`ghcup` (0.1.8) and created/build and several example projects without any
issues. In one of the projects I want to create a binary distribution
tarball. For this I tried using `runhaskell Setup.hs copy` (configure before
that) at one of the steps, and got the following error.
Setup.hs: Encountered missing or private dependencies:
`optparse-applicative` is a dependency of my project and it was installed by
I figured out this is because `cabal-install` and `runhaskell` (or `ghc` or
`ghc-pkg`) used different package DBs.
- `cabal-install` -> ~/.cabal/store/ghc-8.8.4/
- `runhaskell` -> ~/.ghcup/ghc/8.8.4/lib/ghc-8.8.4/
Is there a was I can make both `cabal-install` and `runhaskell` use the same
package DB (or use both of them)?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 833 bytes
Desc: OpenPGP digital signature
More information about the Beginners