fix(haskell): missing haskell-debug-mode-map (#15868)

fixes https://github.com/syl20bnr/spacemacs/issues/15866
This commit is contained in:
Lucius Hu 2023-01-04 14:05:46 -05:00 committed by GitHub
parent 5705c54168
commit c22d3d174f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 17 additions and 15 deletions

View File

@ -229,20 +229,6 @@
"hh" 'hoogle
"hG" 'haskell-hoogle-lookup-from-local)))
(evilified-state-evilify-map haskell-debug-mode-map
:mode haskell-debug-mode
:bindings
"RET" 'haskell-debug/select
"a" 'haskell-debug/abandon
"b" 'haskell-debug/break-on-function
"c" 'haskell-debug/continue
"d" 'haskell-debug/delete
"i" 'haskell-debug/step
"s" 'haskell-debug/next
"S" 'haskell-debug/previous
"r" 'haskell-debug/refresh
"t" 'haskell-debug/trace)
;; configure C-c C-l so it doesn't throw any errors
(bind-key "C-c C-l" 'haskell-process-load-file haskell-mode-map)
(bind-key "C-c C-z" 'haskell-interactive-switch haskell-mode-map)
@ -296,7 +282,23 @@
(add-to-list 'align-rules-list
'(haskell-left-arrows
(regexp . "\\(\\s-+\\)\\(<-\\|←\\)\\s-+")
(modes . haskell-modes))))))
(modes . haskell-modes)))))
(use-package haskell-debug
:config
(evilified-state-evilify-map haskell-debug-mode-map
:mode haskell-debug-mode
:bindings
"RET" 'haskell-debug/select
"a" 'haskell-debug/abandon
"b" 'haskell-debug/break-on-function
"c" 'haskell-debug/continue
"d" 'haskell-debug/delete
"i" 'haskell-debug/step
"s" 'haskell-debug/next
"S" 'haskell-debug/previous
"r" 'haskell-debug/refresh
"t" 'haskell-debug/trace)))
(defun haskell/init-haskell-snippets ()
;; manually load the package since the current implementation is not lazy