Why does “cabal init” break “ghc-mod check”?
问题 ghc-mod works in a directory with just a haskell source file but if I run "cabal init" in that directory (/tmp/test), I get the following error: (p1)dave@peach:/tmp/test$ !ghc ghc-mod check Main.hs ghc-mod: /tmp/test/dist/setup-config: hGetContents: invalid argument (invalid byte sequence) What's going wrong here? I'm running ghc-mod 5.2.11, and cabal 1.21.1.0, on a 64 bit ubuntu 14.04 computer. the LANG environment variable is set to en_US.UTF-8 ( I saw responses to some other questions that