Emacs hangs in haskell-mode with inferior-haskell-load-file call

后端 未结 4 1378
[愿得一人]
[愿得一人] 2021-02-19 21:26

When in a Haskell file, I use C-c C-l to run the command inferior-haskell-load-file which is intended to load the current file into the GHCI interprete

4条回答
  •  萌比男神i
    2021-02-19 21:54

    inferior-haskell-mode does some parsing based upon the expected ghci prompt. As such, if you change the prompt in a .ghci file, then it can't detect it.

    For more information, see where haskell-ghci.el sets the comint-prompt-regexp value to determine what a prompt is.

    ;; GHCi prompt should be of the form `ModuleName> '.
    (setq comint-prompt-regexp
          "^\\*?[[:upper:]][\\._[:alnum:]]*\\( \\*?[[:upper:]][\\._[:alnum:]]*\\)*> ")
    

    If you want to keep the setting in your .ghci file, then it may be possible to customise this settings.

提交回复
热议问题