haskell / haskell-mode

Emacs mode for Haskell
http://haskell.github.io/haskell-mode/
GNU General Public License v3.0
1.33k stars 342 forks source link

haskell-process-load-complete: handle ghc 9.10 message #1850

Closed rntz closed 3 weeks ago

rntz commented 3 weeks ago

ghc 9.10 and later can respond to :load with "Failed, unloaded all modules." Unfortunately haskell-process-load-complete does not recognize this response. This PR fixes this. To simplify and future-proof the code I've adjusted haskell-process-load-complete to look for the regexes Ok, .*$ or Failed, .*$. Alternatively, if you'd prefer to narrowly add the "Failed, unloaded all modules." message, you could cherry-pick this commit.

This may possibly fix https://github.com/haskell/haskell-mode/issues/1642.

purcell commented 3 weeks ago

Looks good, thanks — merged!