emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/haskell-tng-mode 3b37524 360/385: bugfix for qualified imp


From: ELPA Syncer
Subject: [nongnu] elpa/haskell-tng-mode 3b37524 360/385: bugfix for qualified imports when the cache was bad
Date: Wed, 6 Oct 2021 00:00:04 -0400 (EDT)

branch: elpa/haskell-tng-mode
commit 3b37524dde12adad99668bd63a9e348a44d2272c
Author: Tseen She <ts33n.sh3@gmail.com>
Commit: Tseen She <ts33n.sh3@gmail.com>

    bugfix for qualified imports when the cache was bad
---
 haskell-tng-hsinspect.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/haskell-tng-hsinspect.el b/haskell-tng-hsinspect.el
index f8b76f1..26be915 100644
--- a/haskell-tng-hsinspect.el
+++ b/haskell-tng-hsinspect.el
@@ -441,7 +441,9 @@ Does not persist the cache changes to disk."
   (haskell-tng--util-import-symbol module as sym)
   (let ((updates (haskell-tng--hsinspect-extract-imports index module as sym)))
     (setq haskell-tng--hsinspect-imports
-          (append haskell-tng--hsinspect-imports updates))))
+          (if (eq haskell-tng--hsinspect-imports 'cached-nil)
+              updates
+            (append haskell-tng--hsinspect-imports updates)))))
 
 ;; TODO add a package-wide variable cache
 (defvar-local haskell-tng--hsinspect-index nil)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]