Skip to content

Commit 318ccab

Browse files
committed
Merge pull request #819 from vlatkoB/master
Describe haskell-session-change-target for test & bencmark, #817
2 parents 92c5cfb + 96b4230 commit 318ccab

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

doc/haskell-mode.texi

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ interpreter (e.g. GHCi).
6060
* Inferior Haskell interpreter:: How to interact with GHCi (1)
6161
* Interactive Haskell:: How to interact with GHCi (2)
6262
* Editing Cabal files:: Cabal support
63+
* Changing REPL target:: Start REPL with selected target (i.e. test,bench,etc.)
6364
* Concept index:: Index of Haskell Mode concepts
6465
* Function index:: index of commands
6566
* Variable index:: Index of options and types
@@ -592,6 +593,42 @@ used to visit the @file{.cabal} file. If you wish, you can bind
592593
'(define-key haskell-mode-map (kbd "C-c v c") 'haskell-cabal-visit-file))
593594
@end lisp
594595

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+
595632
TODO/WRITEME
596633

597634
@node Concept index

0 commit comments

Comments
 (0)