Skip to content
Closed
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
6 changes: 6 additions & 0 deletions haskell-load.el
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,12 @@ correspondingly-named overlay properties of OVL."
(t
(message "No further notes from Haskell compiler."))))

(defun haskell-goto-first-error ()
(interactive)
(haskell-goto-error-overlay
(first-overlay-in-if 'haskell-check-overlay-p
(buffer-end 0) (buffer-end 1))))

(defun haskell-goto-prev-error ()
(interactive)
(haskell-goto-error-overlay
Expand Down
1 change: 1 addition & 0 deletions haskell.el
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
(define-key map [?\C-c ?\C-z] 'haskell-interactive-switch)
(define-key map (kbd "M-n") 'haskell-goto-next-error)
(define-key map (kbd "M-p") 'haskell-goto-prev-error)
(define-key map (kbd "C-c M-p") 'haskell-goto-first-error)
map)
"Keymap for using haskell-interactive-mode.")

Expand Down