24
24
(require 'haskell-session )
25
25
(require 'highlight-uses-mode )
26
26
27
+ ;;;### autoload
27
28
(defun haskell-process-restart ()
28
29
" Restart the inferior Haskell process."
29
30
(interactive )
@@ -157,12 +158,14 @@ If I break, you can:
157
158
(error " No Haskell session/process associated with this
158
159
buffer. Maybe run M-x haskell-session-change? " )))
159
160
161
+ ;;;### autoload
160
162
(defun haskell-process-clear ()
161
163
" Clear the current process."
162
164
(interactive )
163
165
(haskell-process-reset (haskell-commands-process))
164
166
(haskell-process-set (haskell-commands-process) 'command-queue nil ))
165
167
168
+ ;;;### autoload
166
169
(defun haskell-process-interrupt ()
167
170
" Interrupt the process (SIGINT)."
168
171
(interactive )
@@ -175,6 +178,7 @@ If I break, you can:
175
178
(haskell-process-queue-without-filters process " :reload" )
176
179
(haskell-process-queue-without-filters process " :set -fobject-code" ))
177
180
181
+ ;;;### autoload
178
182
(defun haskell-process-touch-buffer (process buffer )
179
183
" Updates mtime on the file for BUFFER by queing a touch on
180
184
PROCESS."
@@ -253,6 +257,7 @@ from `module-buffer'."
253
257
(car state)
254
258
(format " :m + %s " (mapconcat 'identity (cdr state) " " ))))))))
255
259
260
+ ;;;### autoload
256
261
(defun haskell-describe (ident )
257
262
" Describe the given identifier."
258
263
(interactive (list (read-from-minibuffer " Describe identifier: "
@@ -289,6 +294,7 @@ from `module-buffer'."
289
294
do (insert " \n\n " ))
290
295
(insert " No results for " ident)))))))
291
296
297
+ ;;;### autoload
292
298
(defun haskell-rgrep (&optional prompt )
293
299
" Grep the effective project for the symbol at point. Very
294
300
useful for codebase navigation. Prompts for an arbitrary regexp
@@ -445,6 +451,7 @@ Returns:
445
451
(list 'module
446
452
(match-string 1 defined))))))))))))))
447
453
454
+ ;;;### autoload
448
455
(defun haskell-mode-jump-to-def (ident )
449
456
" Jump to definition of identifier at point."
450
457
(interactive (list (haskell-ident-at-point)))
@@ -529,6 +536,7 @@ command from GHCi."
529
536
(buffer-substring-no-properties (car pos)
530
537
(cdr pos))))))))))
531
538
539
+ ;;;### autoload
532
540
(defun haskell-process-cd (&optional not-interactive )
533
541
" Change directory."
534
542
(interactive )
@@ -574,6 +582,7 @@ command from GHCi."
574
582
(format " Changed directory: %s "
575
583
(cl-caddr state)))))))
576
584
585
+ ;;;### autoload
577
586
(defun haskell-process-cabal-macros ()
578
587
" Send the cabal macros string."
579
588
(interactive )
@@ -616,6 +625,7 @@ command from GHCi."
616
625
(string-match " ^<interactive>" response))
617
626
(haskell-mode-message-line response)))))))
618
627
628
+ ;;;### autoload
619
629
(defun haskell-mode-show-type-at (&optional insert-value )
620
630
" Show the type of the thing at point."
621
631
(interactive " P" )
@@ -642,6 +652,7 @@ command from GHCi."
642
652
(insert (haskell-fontify-as-mode ty 'haskell-mode )))))))
643
653
(message " %s " (haskell-fontify-as-mode ty 'haskell-mode )))))
644
654
655
+ ;;;### autoload
645
656
(defun haskell-process-generate-tags (&optional and-then-find-this-tag )
646
657
" Regenerate the TAGS table."
647
658
(interactive )
@@ -686,6 +697,7 @@ to be loaded by ghci."
686
697
(haskell-interactive-process)
687
698
(format " :set -i%s " ghci-gen-dir)))))
688
699
700
+ ;;;### autoload
689
701
(defun haskell-process-unignore ()
690
702
" Unignore any files that were specified as being ignored by the
691
703
inferior GHCi process."
@@ -711,6 +723,7 @@ to be loaded by ghci."
711
723
(y-or-n-p " Restart GHCi process now? " ))
712
724
(haskell-process-restart )))))
713
725
726
+ ;;;### autoload
714
727
(defun haskell-session-change-target (target )
715
728
" Set the build target for cabal repl"
716
729
(interactive " sNew build target:" )
@@ -722,6 +735,7 @@ to be loaded by ghci."
722
735
(y-or-n-p " Target changed, restart haskell process?" ))
723
736
(haskell-process-start session)))))
724
737
738
+ ;;;### autoload
725
739
(defun haskell-mode-stylish-buffer ()
726
740
" Apply stylish-haskell to the current buffer."
727
741
(interactive )
@@ -777,6 +791,7 @@ remains unchanged."
777
791
(delete-file tmp-file)
778
792
(delete-file err-file)))
779
793
794
+ ;;;### autoload
780
795
(defun haskell-mode-find-uses ()
781
796
" Find uses of the identifier at point, highlight them all."
782
797
(interactive )
0 commit comments