Skip to content

Commit e9c3567

Browse files
authored
Merge pull request #1876 from haskell/bytecomp-fixes
Bytecomp fixes
2 parents be26395 + 3112f5f commit e9c3567

File tree

5 files changed

+17
-21
lines changed

5 files changed

+17
-21
lines changed

haskell-commands.el

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -710,9 +710,9 @@ function `xref-find-definitions' after new table was generated."
710710
(haskell-mode-message-line "Tags generated."))))))
711711

712712
(defun haskell-process-add-cabal-autogen ()
713-
"Add cabal's autogen dir to the GHCi search path.
713+
"Add the cabal autogen dir to the GHCi search path.
714714
Add <cabal-project-dir>/dist/build/autogen/ to GHCi seatch path.
715-
This allows modules such as 'Path_...', generated by cabal, to be
715+
This allows modules such as \"Path_...\", generated by cabal, to be
716716
loaded by GHCi."
717717
(unless (eq 'cabal-repl (haskell-process-type))
718718
(let*
@@ -769,9 +769,8 @@ inferior GHCi process."
769769
(haskell-session-set-target session target)
770770
(when (not (string= old-target target))
771771
(haskell-mode-toggle-interactive-prompt-state)
772-
(unwind-protect
773-
(when (y-or-n-p "Target changed, restart haskell process? ")
774-
(haskell-process-start session)))
772+
(when (y-or-n-p "Target changed, restart haskell process? ")
773+
(haskell-process-start session))
775774
(haskell-mode-toggle-interactive-prompt-state t)))))
776775

777776
;;;###autoload

haskell-customize.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ hindent, structured-haskell-mode, tool-de-jour, etc.
394394
395395
You can set this per-project with a .dir-locals.el file"
396396
:group 'haskell
397-
:type '(repeat 'string))
397+
:type '(repeat string))
398398

399399
(defcustom haskell-stylish-on-save nil
400400
"Whether to run stylish-haskell on the buffer before saving.

haskell-indentation.el

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1135,8 +1135,7 @@ layout starts."
11351135
(haskell-indentation-add-indentation
11361136
(+ left-indent haskell-indentation-starter-offset))
11371137
(throw 'parse-end nil))
1138-
(setq phrase1 (cddr phrase)))
1139-
((string= (cadr phrase) "in"))))))
1138+
(setq phrase1 (cddr phrase)))))))
11401139

11411140
(defun haskell-indentation-add-indentation (indent)
11421141
"" ; FIXME

haskell.el

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -167,11 +167,10 @@
167167
(interactive)
168168
(when (eq major-mode 'haskell-interactive-mode)
169169
(haskell-mode-toggle-interactive-prompt-state)
170-
(unwind-protect
171-
(when (and (boundp 'haskell-session)
172-
haskell-session
173-
(y-or-n-p "Kill the whole session? "))
174-
(haskell-session-kill t)))
170+
(when (and (boundp 'haskell-session)
171+
haskell-session
172+
(y-or-n-p "Kill the whole session? "))
173+
(haskell-session-kill t))
175174
(haskell-mode-toggle-interactive-prompt-state t)))
176175

177176
(defun haskell-session-make (name)
@@ -223,13 +222,12 @@ If `haskell-process-load-or-reload-prompt' is nil, accept `default'."
223222
(when (not (string= name ""))
224223
(let ((session (haskell-session-lookup name)))
225224
(haskell-mode-toggle-interactive-prompt-state)
226-
(unwind-protect
227-
(if session
228-
(when
229-
(y-or-n-p
230-
(format "Session %s already exists. Use it?" name))
231-
session)
232-
(haskell-session-make name)))
225+
(if session
226+
(when
227+
(y-or-n-p
228+
(format "Session %s already exists. Use it?" name))
229+
session)
230+
(haskell-session-make name))
233231
(haskell-mode-toggle-interactive-prompt-state t)))))
234232

235233
;;;###autoload

w3m-haddock.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ You can rebind this if you're using hsenv by adding it to your
5454
5555
"
5656
:group 'haskell
57-
:type 'list)
57+
:type '(list string))
5858

5959
(defvar w3m-haddock-entry-regex "^\\(\\(data\\|type\\) \\|[a-z].* :: \\)"
6060
"Regex to match entry headings.")

0 commit comments

Comments
 (0)