branch: elpa/haskell-mode
commit 337c41e146e47c5f92b28009c535fe9e72cfad76
Author: Michael Arntzenius <daekha...@gmail.com>
Commit: Michael Arntzenius <daekha...@gmail.com>

    haskell-process-load-complete: handle ghc 9.10 message "Failed, unloaded 
all modules"
---
 haskell-load.el | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/haskell-load.el b/haskell-load.el
index 0b431c98d3..9b5d83aeb4 100644
--- a/haskell-load.el
+++ b/haskell-load.el
@@ -134,6 +134,10 @@ actual Emacs buffer of the module being loaded."
                 process
                 "Failed, no modules loaded\\.$") ;; for ghc 8.4
                nil)
+              ((haskell-process-consume
+                process
+                "Failed, unloaded all modules\\.$") ;; for ghc 9.10
+               nil)
               (t
                (error (message "Unexpected response from haskell process.")))))
          (modules (haskell-process-extract-modules buffer))

Reply via email to