We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 505e683 commit 9f1560bCopy full SHA for 9f1560b
haskell-session.el
@@ -64,8 +64,8 @@
64
(cl-reduce (lambda (acc a)
65
(let ((dir (haskell-session-cabal-dir a t)))
66
(if dir
67
- (if (haskell-is-prefix-of dir
68
- (file-name-directory (buffer-file-name)))
+ (if (string-prefix-p dir
+ (file-name-directory (buffer-file-name)))
69
(if acc
70
(if (and
71
(> (length (haskell-session-cabal-dir a t))
haskell-string.el
@@ -13,11 +13,6 @@
13
0
14
(min (length string) n)))
15
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
-
21
(defun haskell-string ())
22
23
(provide 'haskell-string)
0 commit comments