File GHCi8.2.1-response.patch of Package emacs-haskell-mode

From 7a4cf46bbae2eb1c4a2f4e063f427344abeed473 Mon Sep 17 00:00:00 2001
From: Brian Cully <bjc@kublai.com>
Date: Fri, 13 Oct 2017 22:27:14 -0400
Subject: [PATCH] Fix haskell-process-load-complete for GHC 8.2.1

At some point by GHC 8.2.1, the text for successful load of a module
into ghci changed. This patch allows for the new format, in addition
to the existing ones.
---
 haskell-load.el | 8 ++++++++
 1 file changed, 8 insertions(+)

Index: haskell-mode-16.1/haskell-load.el
===================================================================
--- haskell-mode-16.1.orig/haskell-load.el
+++ haskell-mode-16.1/haskell-load.el
@@ -100,6 +100,14 @@ actual Emacs buffer of the module being
   (let* ((ok (cond
               ((haskell-process-consume
                 process
+                "Ok, \\([0-9]+\\) modules? loaded\\.$")
+               t)
+              ((haskell-process-consume
+                process
+                "Failed, \\([0-9]+\\) modules? loaded\\.$")
+               nil)
+              ((haskell-process-consume
+                process
                 "Ok, modules loaded: \\(.+\\)\\.$")
                t)
               ((haskell-process-consume
openSUSE Build Service is sponsored by