cabal install ghc-mod
seems to work, but when I try cabal run ghc-mod
I get the following error:
Package has never been configured. Configuring with default flags. If this fails, please configure manually.
cabal: No cabal file found.
Please create a package description file <pkgname>.cabal
The resources I've found seem to suggest that creating a package description file shouldn't be necessary to install a package.
Any ideas?
cabal run
is for running executables in a cabal environment. This is not your use case. You just want to run an executable which is created by a cabal package, namely ghc-mod. By default, cabal places executables in the cabal directory (on windows this is %APPDATA%/cabal - hopefully you can figure out which directory it is on your machine). – user2407038$HOME/Library/Haskell/bin
, which I added to myPATH
, but I can't runghc-mod
. – hjkml