@@ -60,6 +60,7 @@ interpreter (e.g. GHCi).
60
60
* Inferior Haskell interpreter :: How to interact with GHCi (1)
61
61
* Interactive Haskell :: How to interact with GHCi (2)
62
62
* Editing Cabal files :: Cabal support
63
+ * Changing REPL target :: Start REPL with selected target (i.e. test,bench,etc.)
63
64
* Concept index :: Index of Haskell Mode concepts
64
65
* Function index :: index of commands
65
66
* Variable index :: Index of options and types
@@ -592,6 +593,42 @@ used to visit the @file{.cabal} file. If you wish, you can bind
592
593
'(define-key haskell-mode-map (kbd " C-c v c" ) 'haskell-cabal-visit-file ))
593
594
@end lisp
594
595
596
+ TODO/WRITEME
597
+
598
+ @node Changing REPL target
599
+ @chapter Changing REPL target
600
+
601
+ @findex haskell-session-change-target
602
+ @vindex haskell-interactive-mode-hook
603
+
604
+ With @code {haskell-session-change-target } you can change the section
605
+ (defined in project's @file {.cabal } file) the interactive REPL session is
606
+ started with.
607
+
608
+ After the session is started, you can switch the target for
609
+
610
+ @cindex testing
611
+ - Testing
612
+
613
+ In @code {haskell-interactive-mode } buffer invoke the
614
+ @code {haskell-session-change-target } and enter the name of the test you
615
+ wish to perform, i.e. ``test''.
616
+ Answer ``yes'' to restart the session.
617
+
618
+ @cindex benchmarking
619
+ - Benchmark
620
+
621
+ In @code {haskell-interactive-mode } buffer invoke the @code {haskell-session-change-target }
622
+ and enter the name of the benchmark you wish to perform, i.e. ``bench''.
623
+ Answer ``yes'' to restart the session.
624
+
625
+ - Executable
626
+
627
+ In @code {haskell-interactive-mode } buffer invoke the @code {haskell-session-change-target }
628
+ and enter the name of the executable you wish to work with.
629
+ Answer ``yes'' to restart the session.
630
+
631
+
595
632
TODO/WRITEME
596
633
597
634
@node Concept index
0 commit comments