File tree 2 files changed +10
-17
lines changed 2 files changed +10
-17
lines changed Original file line number Diff line number Diff line change 34
34
35
35
; ; (defun haskell-cabal-extract-fields-from-doc ()
36
36
; ; (require 'xml)
37
- ; ; (with-no-warnings (require 'cl))
38
37
; ; (let ((section (completing-read
39
38
; ; "Section: "
40
39
; ; '("general-fields" "library" "executable" "buildinfo"))))
43
42
; ; (let* ((xml (xml-parse-region
44
43
; ; (progn (search-forward "<variablelist>") (match-beginning 0))
45
44
; ; (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))))
48
47
; ; varlist))
49
48
; ; (fields (mapcar (lambda (sym) (substring-no-properties sym 0 -1)) syms)))
50
49
; ; fields))
Original file line number Diff line number Diff line change 300
300
301
301
; ;; Code:
302
302
303
- (eval-when-compile (require 'cl ))
304
-
305
303
(require 'haskell-mode )
306
304
(require 'haskell-process )
307
305
(require 'haskell )
@@ -1539,18 +1537,14 @@ If SYNC is non-nil, make the call synchronously instead."
1539
1537
(if sync
1540
1538
(let ((response (haskell-process-queue-sync-request process ghci-command)))
1541
1539
(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 )))
1554
1548
1555
1549
(defun haskell-doc-sym-doc (sym )
1556
1550
" Show the type of given symbol SYM.
You can’t perform that action at this time.
0 commit comments