--- a/lexers/LexHaskell.cxx
+++ b/lexers/LexHaskell.cxx
@@ -742,7 +742,6 @@
       styler.SetLevel(lineCurrent, options.foldCompact ? lev : lev & ~SC_FOLDLEVELWHITEFLAG);
       indentCurrent = indentNext;
       lineCurrent = lineNext;
-      importCurrent = importNext;
    }
 
    // NOTE: Cannot set level of last line here because indentCurrent doesn't have