在Mac OS X,我無法安裝ghc-mod
由於不能安裝一個名爲「快樂的」依賴性:無法安裝由於'開心'而無法安裝ghc-mod?
bash> cabal install ghc-mod
Resolving dependencies...
Configuring haskell-src-exts-1.17.1...
Failed to install haskell-src-exts-1.17.1
Build log (/Users/meng/.cabal/logs/haskell-src-exts-1.17.1.log):
Configuring haskell-src-exts-1.17.1...
setup-Simple-Cabal-1.22.5.0-x86_64-osx-ghc-7.10.3: The program 'happy' version
>=1.19 is required but it could not be found.
cabal: Error: some packages failed to install:
ghc-mod-5.5.0.0 depends on haskell-src-exts-1.17.1 which failed to install.
haskell-src-exts-1.17.1 failed during the configure step. The exception was:
ExitFailure 1
hlint-1.9.31 depends on haskell-src-exts-1.17.1 which failed to install.
任何想法?
我知道還有一點需要學習,但考慮使用'stack'或'cabal sandboxes',對於後者你最好做一個'cabal get ghc-mod',然後cd進入ghcmod目錄,在那裏你可以做'cabal sandbox init'這會讓你的生活更容易Haskell。使用'stack'甚至更好,但已經有推薦的答案。 – epsilonhalbe