Execute ghc-mod fail when .cabal file in current directory

100 Views Asked by At

When I execute ghc-mod version normally, It will print the infomation like this:

ghc-mod version 5.0.1.2 compiled by GHC 7.8.3

But if .cabal file was in current directory, It will print the error message like this:

cabal configure failed: user error (cabal configure (exit 1)
cabal: At least the following dependencies are missing:
HUnit -any, hspec -any, testloop -any
)

How should I fix this probleam?

0

There are 0 best solutions below