문제

Is there a way to obtain the default cabal config directory, i.e. the path you would specify in ghc-pkg.exe init {path}?

I wanted it in a script to automatically remove that folder for repairing/re-installing ghc.

Thanks.

도움이 되었습니까?

해결책

Per @user2407038's comments, I obtained the location of the cabal config location with

cabal help | tail -n1

and removed the folder using

rm -rf `cabal help | tail -n1 | xargs dirname` 
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top