How to get cabal-install Distribution.Client.IndexUtils

I tried to add cabal-install and cabal-install to the .cabal file, but.

At least the following dependencies are missing: Cabal-install -any

Why is there no cabal-install ?

So, how can I get Distribution.Client.IndexUtils , except to implement cabal installation sources?

and Distribution.Client.IndexUtils .

Or maybe I can replace it with something?

+4
source share
1 answer

Unfortunately, cabal-install is a package that provides an executable, but not a library. Therefore, there is no easy way to use the functions provided by cabal-install in other tools. A general approach is to write shell programs that invoke cabal binary and request it for information.

Having some cabal-install functions available as a library is a legitimate and reasonable goal, but it may take some time before this happens.

As for the error message: if the package installs only the executable file, it is not registered as a library with GHC. Therefore, if you list cabal-install as a dependency of another package, you will receive an error message that cabal-install missing (in the form of a library).

+1
source

All Articles