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).
source share