Skip to content

Commit 0788539

Browse files
committed
Fix align imports for modules named "Instance"
1 parent c5987ad commit 0788539

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

haskell-align-imports.el

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,8 +223,9 @@
223223
"Are we after the imports list?"
224224
(save-excursion
225225
(goto-char (line-beginning-position))
226-
(not (not (search-forward-regexp "\\( = \\|\\<instance\\>\\| :: \\| ∷ \\)"
227-
(line-end-position) t 1)))))
226+
(let ((case-fold-search nil))
227+
(not (not (search-forward-regexp "\\( = \\|\\<instance\\>\\| :: \\| ∷ \\)"
228+
(line-end-position) t 1))))))
228229

229230
(provide 'haskell-align-imports)
230231

0 commit comments

Comments
 (0)