Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions haskell-commands.el
Original file line number Diff line number Diff line change
Expand Up @@ -710,9 +710,9 @@ function `xref-find-definitions' after new table was generated."
(haskell-mode-message-line "Tags generated."))))))

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

;;;###autoload
Expand Down
2 changes: 1 addition & 1 deletion haskell-customize.el
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ hindent, structured-haskell-mode, tool-de-jour, etc.

You can set this per-project with a .dir-locals.el file"
:group 'haskell
:type '(repeat 'string))
:type '(repeat string))

(defcustom haskell-stylish-on-save nil
"Whether to run stylish-haskell on the buffer before saving.
Expand Down
3 changes: 1 addition & 2 deletions haskell-indentation.el
Original file line number Diff line number Diff line change
Expand Up @@ -1135,8 +1135,7 @@ layout starts."
(haskell-indentation-add-indentation
(+ left-indent haskell-indentation-starter-offset))
(throw 'parse-end nil))
(setq phrase1 (cddr phrase)))
((string= (cadr phrase) "in"))))))
(setq phrase1 (cddr phrase)))))))

(defun haskell-indentation-add-indentation (indent)
"" ; FIXME
Expand Down
22 changes: 10 additions & 12 deletions haskell.el
Original file line number Diff line number Diff line change
Expand Up @@ -167,11 +167,10 @@
(interactive)
(when (eq major-mode 'haskell-interactive-mode)
(haskell-mode-toggle-interactive-prompt-state)
(unwind-protect
(when (and (boundp 'haskell-session)
haskell-session
(y-or-n-p "Kill the whole session? "))
(haskell-session-kill t)))
(when (and (boundp 'haskell-session)
haskell-session
(y-or-n-p "Kill the whole session? "))
(haskell-session-kill t))
(haskell-mode-toggle-interactive-prompt-state t)))

(defun haskell-session-make (name)
Expand Down Expand Up @@ -223,13 +222,12 @@ If `haskell-process-load-or-reload-prompt' is nil, accept `default'."
(when (not (string= name ""))
(let ((session (haskell-session-lookup name)))
(haskell-mode-toggle-interactive-prompt-state)
(unwind-protect
(if session
(when
(y-or-n-p
(format "Session %s already exists. Use it?" name))
session)
(haskell-session-make name)))
(if session
(when
(y-or-n-p
(format "Session %s already exists. Use it?" name))
session)
(haskell-session-make name))
(haskell-mode-toggle-interactive-prompt-state t)))))

;;;###autoload
Expand Down
2 changes: 1 addition & 1 deletion w3m-haddock.el
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ You can rebind this if you're using hsenv by adding it to your

"
:group 'haskell
:type 'list)
:type '(list string))

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