branch: elpa/haskell-tng-mode
commit 3b37524dde12adad99668bd63a9e348a44d2272c
Author: Tseen She <ts33n....@gmail.com>
Commit: Tseen She <ts33n....@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