Dependency issues when trying to configure Setup.hs despite having installed dependencies

I was provided with the Setup.hs file along with another .hs file that contains the source code. Whenever I try to configure the installation, follow these steps:

runhaskell Setup.hs configure

I get an error message:

Customization: at least, the following dependencies are missing: binary> = 0.4.0 && <0.6.0, haskeline == 0.6. *

Since then I have installed these dependencies using cabal, but when I try to run the Setup configure command again, I get the same error. I am completely unfamiliar with Haskell - is there another step that I am missing after completing the cabal installation before trying to run the program again?

+6
haskell cabal cabal-install
source share
1 answer

How did you install the packages? If you installed them with the --user flag, then you also need to configure the --user flag.

You can verify that the packages are installed by running ghc-pkg list binary and ghc-pkg list haskeline . It will list installed versions of packages matching this name, along with where they are installed.

+7
source share

All Articles