8989; ;; Code:
9090
9191(require 'purescript-string )
92- (with-no-warnings ( require 'cl ) )
92+ (require 'cl-lib )
9393
9494(defvar purescript-literate )
9595
@@ -267,7 +267,7 @@ If so, return its start; otherwise return nil:
267267If it is Bird-style, then return the position of the >;
268268otherwise return the ending position of \\ begin{code}."
269269 (save-excursion
270- (case purescript-literate
270+ (cl- case purescript-literate
271271 (bird
272272 (beginning-of-line )
273273 (if (or (eq (following-char ) ?\> )
@@ -374,7 +374,7 @@ location of the opening symbol, nil otherwise."
374374 " Check, starting from START, if END is at or within a comment.
375375Returns the location of the start of the comment, nil otherwise."
376376 (let (pps)
377- (assert (<= start end))
377+ (cl- assert (<= start end))
378378 (cond ((= start end) nil )
379379 ((nth 4 (save-excursion (setq pps (parse-partial-sexp start end))))
380380 (nth 8 pps))
@@ -580,7 +580,7 @@ Returns the location of the start of the comment, nil otherwise."
580580 (if rpurs-sign (purescript-indent-push-pos rpurs-sign)
581581 (purescript-indent-push-pos-offset valname))
582582 (purescript-indent-push-pos-offset valname)))
583- (case ; general case
583+ (cl- case ; general case
584584 (purescript-indent-find-case test)
585585 ; ; "1.1.11" 1= vn gd rh arh
586586 (1 (purescript-indent-push-pos valname)
@@ -681,7 +681,7 @@ Returns the location of the start of the comment, nil otherwise."
681681 (purescript-indent-push-pos-offset valname))))
682682 (if (string= purescript-indent-current-line-first-ident " ::" )
683683 (if valname (purescript-indent-push-pos valname))
684- (case ; general case
684+ (cl- case ; general case
685685 (purescript-indent-find-case test)
686686 ; ; "1.1.11" 1= vn gd rh arh
687687 (1 (if is-where
@@ -776,7 +776,7 @@ than an identifier, a guard or rpurs."
776776 (if (and valname-string ; special case for start keywords
777777 (string-match purescript-indent-start-keywords-re valname-string))
778778 (purescript-indent-push-pos-offset valname)
779- (case ; general case
779+ (cl- case ; general case
780780 (purescript-indent-find-case test)
781781 ; ; "1.1.11" 1= vn gd rh arh
782782 (1 (purescript-indent-push-pos aft-rpurs-sign))
@@ -819,11 +819,11 @@ than an identifier, a guard or rpurs."
819819 purescript-indent-info)))
820820
821821(defun purescript-indent-valdef-indentation (start end end-visible curr-line-type
822- indent-info )
822+ indent-info )
823823 " Find indentation information for a value definition."
824824 (let ((purescript-indent-info indent-info))
825825 (if (< start end-visible)
826- (case curr-line-type
826+ (cl- case curr-line-type
827827 (empty (purescript-indent-empty start end end-visible indent-info))
828828 (ident (purescript-indent-ident start end end-visible indent-info))
829829 (guard (purescript-indent-guard start end end-visible indent-info))
@@ -839,7 +839,7 @@ Separate a line of program into valdefs between offside keywords
839839and find indentation info for each part."
840840 (save-excursion
841841 ; ; point is (already) at line-start
842- (assert (eq (point ) line-start))
842+ (cl- assert (eq (point ) line-start))
843843 (let ((purescript-indent-info indent-info)
844844 (start (or (purescript-indent-in-comment line-start line-end)
845845 (purescript-indent-in-string line-start line-end))))
@@ -1025,7 +1025,7 @@ See http://hackage.purescript.org/trac/purescript-prime/wiki/DoAndIfThenElse"
10251025(defun purescript-indent-closing-keyword (start )
10261026 (let ((open (save-excursion
10271027 (purescript-indent-find-matching-start
1028- (case (char-after )
1028+ (cl- case (char-after )
10291029 (?i " \\ <\\ (?:\\ (in\\ )\\ |let\\ )\\ >" )
10301030 (?o " \\ <\\ (?:\\ (of\\ )\\ |case\\ )\\ >" )
10311031 (?t " \\ <\\ (?:\\ (then\\ )\\ |if\\ )\\ >" )
0 commit comments