Skip to content

Commit 31426d7

Browse files
committed
Remove final cl requires
1 parent 048b157 commit 31426d7

File tree

2 files changed

+10
-17
lines changed

2 files changed

+10
-17
lines changed

haskell-cabal.el

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434

3535
;; (defun haskell-cabal-extract-fields-from-doc ()
3636
;; (require 'xml)
37-
;; (with-no-warnings (require 'cl))
3837
;; (let ((section (completing-read
3938
;; "Section: "
4039
;; '("general-fields" "library" "executable" "buildinfo"))))
@@ -43,8 +42,8 @@
4342
;; (let* ((xml (xml-parse-region
4443
;; (progn (search-forward "<variablelist>") (match-beginning 0))
4544
;; (progn (search-forward "</variablelist>") (point))))
46-
;; (varlist (remove-if-not 'consp (cddar xml)))
47-
;; (syms (mapcar (lambda (entry) (caddr (assq 'literal (assq 'term entry))))
45+
;; (varlist (cl-remove-if-not 'consp (cl-cddar xml)))
46+
;; (syms (mapcar (lambda (entry) (cl-caddr (assq 'literal (assq 'term entry))))
4847
;; varlist))
4948
;; (fields (mapcar (lambda (sym) (substring-no-properties sym 0 -1)) syms)))
5049
;; fields))

haskell-doc.el

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -300,8 +300,6 @@
300300

301301
;;; Code:
302302

303-
(eval-when-compile (require 'cl))
304-
305303
(require 'haskell-mode)
306304
(require 'haskell-process)
307305
(require 'haskell)
@@ -1539,18 +1537,14 @@ If SYNC is non-nil, make the call synchronously instead."
15391537
(if sync
15401538
(let ((response (haskell-process-queue-sync-request process ghci-command)))
15411539
(funcall callback (funcall process-response response)))
1542-
(lexical-let ((process process)
1543-
(callback callback)
1544-
(ghci-command ghci-command)
1545-
(process-response process-response))
1546-
(haskell-process-queue-command
1547-
process
1548-
(make-haskell-command
1549-
:go (lambda (_) (haskell-process-send-string process ghci-command))
1550-
:complete
1551-
(lambda (_ response)
1552-
(funcall callback (funcall process-response response))))))
1553-
'async))))
1540+
(haskell-process-queue-command
1541+
process
1542+
(make-haskell-command
1543+
:go (lambda (_) (haskell-process-send-string process ghci-command))
1544+
:complete
1545+
(lambda (_ response)
1546+
(funcall callback (funcall process-response response))))))
1547+
'async)))
15541548

15551549
(defun haskell-doc-sym-doc (sym)
15561550
"Show the type of given symbol SYM.

0 commit comments

Comments
 (0)