Skip to content

Describe haskell-session-change-target for test & bencmark, #817 #819

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 19, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions doc/haskell-mode.texi
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ interpreter (e.g. GHCi).
* Inferior Haskell interpreter:: How to interact with GHCi (1)
* Interactive Haskell:: How to interact with GHCi (2)
* Editing Cabal files:: Cabal support
* Changing REPL target:: Start REPL with selected target (i.e. test,bench,etc.)
* Concept index:: Index of Haskell Mode concepts
* Function index:: index of commands
* Variable index:: Index of options and types
Expand Down Expand Up @@ -592,6 +593,42 @@ used to visit the @file{.cabal} file. If you wish, you can bind
'(define-key haskell-mode-map (kbd "C-c v c") 'haskell-cabal-visit-file))
@end lisp

TODO/WRITEME

@node Changing REPL target
@chapter Changing REPL target

@findex haskell-session-change-target
@vindex haskell-interactive-mode-hook

With @code{haskell-session-change-target} you can change the section
(defined in project's @file{.cabal} file) the interactive REPL session is
started with.

After the session is started, you can switch the target for

@cindex testing
- Testing

In @code{haskell-interactive-mode} buffer invoke the
@code{haskell-session-change-target} and enter the name of the test you
wish to perform, i.e. ``test''.
Answer ``yes'' to restart the session.

@cindex benchmarking
- Benchmark

In @code{haskell-interactive-mode} buffer invoke the @code{haskell-session-change-target}
and enter the name of the benchmark you wish to perform, i.e. ``bench''.
Answer ``yes'' to restart the session.

- Executable

In @code{haskell-interactive-mode} buffer invoke the @code{haskell-session-change-target}
and enter the name of the executable you wish to work with.
Answer ``yes'' to restart the session.


TODO/WRITEME

@node Concept index
Expand Down