[Haskell-cafe] Haskell + emacs + Ghc-mod 4.0.1

Kazu Yamamoto (=?iso-2022-jp?B?GyRCOzNLXE9CSScbKEI=?=) kazu at iij.ad.jp
Thu Apr 3 21:30:24 UTC 2014

> I upgrade my emacs configuration with latest ghc-mod and all of sudden
> nothing works (again).
> When I try to load a .hs file from a project I got the first line
> highlighted with the error "cannot satisfy -package spec" and I cannot got
> type, info or doc from that file. Also I do not have anymore syntax errors
> highlighting I used to see.

As this message suggests, you need to install spec for testing.

% cabal install spec

# I don't know what the spec package is. A typo for hspec?

This is because ghc-mod obtains dependency for executables, libraries
*and* testing.

In general, 
% cabal install --only-dependencies
would help you.


More information about the Haskell-Cafe mailing list