Skip to content

Commit a515d66

Browse files
committed
Merge pull request #775 from gracjan/pr-fix-copy-list
Fix copy-list
2 parents eb2ec99 + 327e16e commit a515d66

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

haskell-sort-imports.el

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@
3030

3131
;;; Code:
3232

33+
(require 'cl-lib)
34+
3335
(defvar haskell-sort-imports-regexp
3436
(concat "^import[ ]+"
3537
"\\(qualified \\)?"
@@ -55,7 +57,7 @@ within that region."
5557
(haskell-sort-imports-goto-group-start))
5658
(let* ((start (point))
5759
(imports (haskell-sort-imports-collect-imports))
58-
(sorted (sort (copy-list imports)
60+
(sorted (sort (cl-copy-list imports)
5961
(lambda (a b)
6062
(string< (haskell-sort-imports-normalize a)
6163
(haskell-sort-imports-normalize b))))))

0 commit comments

Comments
 (0)