Skip to content

Commit 9f1560b

Browse files
committed
Use string-prefix-p instead of haskell-is-prefix-of.
1 parent 505e683 commit 9f1560b

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

haskell-session.el

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@
6464
(cl-reduce (lambda (acc a)
6565
(let ((dir (haskell-session-cabal-dir a t)))
6666
(if dir
67-
(if (haskell-is-prefix-of dir
68-
(file-name-directory (buffer-file-name)))
67+
(if (string-prefix-p dir
68+
(file-name-directory (buffer-file-name)))
6969
(if acc
7070
(if (and
7171
(> (length (haskell-session-cabal-dir a t))

haskell-string.el

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,6 @@
1313
0
1414
(min (length string) n)))
1515

16-
;;;###autoload
17-
(defun haskell-is-prefix-of (x y)
18-
"Is x string a prefix of y string?"
19-
(string= x (substring y 0 (min (length y) (length x)))))
20-
2116
(defun haskell-string ())
2217

2318
(provide 'haskell-string)

0 commit comments

Comments
 (0)