The Haskell process `xx’ has died issue

来源:互联网 发布:临沂嘎嘎网络 编辑:程序博客网 时间:2024/05/16 02:21

genvironment: emacs 2.5 , windows10 (chinese / japanese)
cabal init… , cabal configure… ,
open the Main.hs and press c-c c-l, I get the following message :

The Haskell process 'xx' has died. Restart? (y, n, l: show process log)

press y or n, coundn’t solve the problem. when press l ,I get the message :

("Starting inferior `cabal repl' process using cabal ..." "hello" nil "cabal" "repl" "--ghc-option=-ferror-spans")-> Prelude.putStrLn "":set -v1:set +c-> :set prompt "\4"-> :set prompt2 "λ| "GHCi, version 8.0.1: http://www.haskell.org/ghc/ :? for help*Main> *Main> *Main> Leaving GHCi.

This seems to “cabal repl” has started successfully, but there is something wrong between repl and ghci’s precess communication(maybe, I guess).

to solve the issue, put (set-language-environment ‘utf-8) into init.el.


阅读全文
0 0
原创粉丝点击