File tree Expand file tree Collapse file tree 1 file changed +58
-0
lines changed Expand file tree Collapse file tree 1 file changed +58
-0
lines changed Original file line number Diff line number Diff line change @@ -486,6 +486,64 @@ need to add the following to your Emacs initialization:
486
486
'(add-to-list 'which-func-modes 'haskell-mode ))
487
487
@end lisp
488
488
489
+ @section Speedbar
490
+
491
+ Haskell-mode comes with declaration scanning support. This means that if you enable Haskell support for speedbar:
492
+
493
+ @lisp
494
+ (speedbar-add-supported-extension " .hs" )
495
+ @end lisp
496
+
497
+ And open speedbar with
498
+
499
+ @code {M-x speedbar }
500
+
501
+ It gives a listing of each module and under each module:
502
+
503
+ @example
504
+ Imports
505
+ Instances
506
+ Data types
507
+ Classes
508
+ Bindings
509
+ @end example
510
+
511
+ You will get a bar that looks like this:
512
+
513
+ @verbatim
514
+ ~/Projects/ace/src/ACE/
515
+ 0:<+> Types
516
+ 0:[+] Combinators.hs
517
+ 0:[-] Datalog.hs
518
+ 1: {-} Classes
519
+ 2: > ToTerm
520
+ 1: {-} Imports
521
+ 2: > ACE.Types.Syntax
522
+ 2: > Database.Datalog
523
+ 1: {-} Instances
524
+ 2: {+} ToTerm A
525
+ 2: {+} ToTerm Co to ToTerm Gen
526
+ 2: {+} ToTerm Intransitive to ToTerm N
527
+ 2: {+} ToTerm P
528
+ 2: {+} ToTerm Quotation to ToTerm Un
529
+ 2: {+} ToTerm V
530
+ 0:[-] Html.hs
531
+ 1: {+} Imports
532
+ 1: {+} Instances
533
+ 1: > mtoMarkup
534
+ 1: > toMarkupm
535
+ 1: > wrap
536
+ 0:[-] Parsers.hs
537
+ 1: {+} Imports
538
+ 1: {-} Datatypes
539
+ 2: > ACEParser
540
+ 0:[+] Pretty.hs
541
+ 0:[+] Tokenizer.hs
542
+ @end verbatim
543
+
544
+ The hierarchy is expandable/collapsible and each entry will jump to the
545
+ line in the right file when clicked/selected.
546
+
489
547
@node Compilation
490
548
@chapter Compilation
491
549
You can’t perform that action at this time.
0 commit comments