Skip to content

Commit 910800d

Browse files
authored
Merge pull request #1790 from syohex/needless-quote
Remove needless quotes from keylist of case macro
2 parents 57d249c + 03e2e85 commit 910800d

File tree

6 files changed

+26
-26
lines changed

6 files changed

+26
-26
lines changed

haskell-cabal.el

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -702,22 +702,22 @@ Respect the COMMA-STYLE, see
702702
`haskell-cabal-strip-list-and-detect-style' for the possible
703703
styles."
704704
(cl-case comma-style
705-
('before
705+
(before
706706
(goto-char (point-min))
707707
(while (haskell-cabal-ignore-line-p) (forward-line))
708708
(indent-to 2)
709709
(forward-line)
710710
(haskell-cabal-each-line
711711
(unless (haskell-cabal-ignore-line-p)
712712
(insert ", "))))
713-
('after
713+
(after
714714
(goto-char (point-max))
715715
(while (equal 0 (forward-line -1))
716716
(unless (haskell-cabal-ignore-line-p)
717717
(end-of-line)
718718
(insert ",")
719719
(beginning-of-line))))
720-
('single
720+
(single
721721
(goto-char (point-min))
722722
(while (not (eobp))
723723
(end-of-line)

haskell-commands.el

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -653,11 +653,11 @@ happened since function invocation)."
653653
(cl-case res-type
654654
;; neither popup presentation buffer
655655
;; nor insert response in error case
656-
('unknown-command
656+
(unknown-command
657657
(message "This command requires GHCi 8+ or GHCi-ng. Please read command description for details."))
658-
('option-missing
658+
(option-missing
659659
(message "Could not infer type signature. You need to load file first. Also :set +c is required, see customization `haskell-interactive-set-+c'. Please read command description for details."))
660-
('interactive-error (message "Wrong REPL response: %s" sig))
660+
(interactive-error (message "Wrong REPL response: %s" sig))
661661
(otherwise
662662
(if insert-value
663663
;; Only insert type signature and do not present it

haskell-completions.el

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -308,11 +308,11 @@ PREFIX should be a list such one returned by
308308
(when (not (eql typ 'haskell-completions-general-prefix))
309309
(let ((candidates
310310
(cl-case typ
311-
('haskell-completions-pragma-name-prefix
311+
(haskell-completions-pragma-name-prefix
312312
haskell-completions--pragma-names)
313-
('haskell-completions-ghc-option-prefix
313+
(haskell-completions-ghc-option-prefix
314314
haskell-ghc-supported-options)
315-
('haskell-completions-language-extension-prefix
315+
(haskell-completions-language-extension-prefix
316316
haskell-ghc-supported-extensions)
317317
(otherwise
318318
(append (when (bound-and-true-p haskell-tags-on-save)

haskell-load.el

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -265,9 +265,9 @@ list of modules where missed IDENT was found."
265265
(get-buffer-create "*haskell-process-log*"))
266266
(switch-to-buffer-other-window (get-buffer "*haskell-process-log*")))
267267
(t (let ((app-name (cl-ecase (haskell-process-type)
268-
('ghci haskell-process-path-cabal)
269-
('cabal-repl haskell-process-path-cabal)
270-
('stack-ghci haskell-process-path-stack))))
268+
(ghci haskell-process-path-cabal)
269+
(cabal-repl haskell-process-path-cabal)
270+
(stack-ghci haskell-process-path-stack))))
271271
(haskell-process-queue-command
272272
process
273273
(make-haskell-command
@@ -566,12 +566,12 @@ When MODULE-BUFFER is non-NIL, paint error overlays."
566566
"Show the '(Compiling|Loading) X' message."
567567
(let ((msg (concat
568568
(cl-ecase type
569-
('compiling
569+
(compiling
570570
(if haskell-interactive-mode-include-file-name
571571
(format "Compiling: %s (%s)" module-name file-name)
572572
(format "Compiling: %s" module-name)))
573-
('loading (format "Loading: %s" module-name))
574-
('import-cycle
573+
(loading (format "Loading: %s" module-name))
574+
(import-cycle
575575
(format "Module has an import cycle: %s" module-name)))
576576
(if th " [TH]" ""))))
577577
(haskell-mode-message-line msg)

haskell-process.el

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ Do not actually start any process.
7777
HPTYPE is the result of calling `'haskell-process-type`' function."
7878
(let ((session-name (haskell-session-name session)))
7979
(cl-ecase hptype
80-
('ghci
80+
(ghci
8181
(append (list (format "Starting inferior GHCi process %s ..."
8282
haskell-process-path-ghci)
8383
session-name
@@ -86,7 +86,7 @@ HPTYPE is the result of calling `'haskell-process-type`' function."
8686
(list
8787
(append (haskell-process-path-to-list haskell-process-path-ghci)
8888
haskell-process-args-ghci)))))
89-
('cabal-repl
89+
(cabal-repl
9090
(append (list (format "Starting inferior `cabal repl' process using %s ..."
9191
haskell-process-path-cabal)
9292
session-name
@@ -99,7 +99,7 @@ HPTYPE is the result of calling `'haskell-process-type`' function."
9999
haskell-process-args-cabal-repl
100100
(let ((target (haskell-session-target session)))
101101
(if target (list target) nil)))))))
102-
('stack-ghci
102+
(stack-ghci
103103
(append (list (format "Starting inferior stack GHCi process using %s" haskell-process-path-stack)
104104
session-name
105105
nil)

inf-haskell.el

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,14 @@
5555
"Return the command with the arguments to start the repl based on the
5656
directory structure."
5757
(cl-ecase (haskell-process-type)
58-
('ghci (cond ((eq system-type 'cygwin) `("ghcii.sh" ,@haskell-process-args-ghci))
59-
(t (append
60-
(if (listp haskell-process-path-ghci)
61-
haskell-process-path-ghci
62-
(list haskell-process-path-ghci))
63-
haskell-process-args-ghci))))
64-
('cabal-repl `(,haskell-process-path-cabal "repl" ,@haskell-process-args-cabal-repl))
65-
('stack-ghci `(,haskell-process-path-stack "ghci" ,@haskell-process-args-stack-ghci))))
58+
(ghci (cond ((eq system-type 'cygwin) `("ghcii.sh" ,@haskell-process-args-ghci))
59+
(t (append
60+
(if (listp haskell-process-path-ghci)
61+
haskell-process-path-ghci
62+
(list haskell-process-path-ghci))
63+
haskell-process-args-ghci))))
64+
(cabal-repl `(,haskell-process-path-cabal "repl" ,@haskell-process-args-cabal-repl))
65+
(stack-ghci `(,haskell-process-path-stack "ghci" ,@haskell-process-args-stack-ghci))))
6666

6767
(defconst inferior-haskell-info-xref-re
6868
"-- Defined at \\(.+\\):\\([0-9]+\\):\\([0-9]+\\)\\(?:-\\([0-9]+\\)\\)?$")

0 commit comments

Comments
 (0)