Skip to content

Commit cff017b

Browse files
committed
Merge pull request #1267 from gracjan/pr-fix-doc
Rearrange changing repl target section
2 parents 5aeff2d + bbad69c commit cff017b

File tree

1 file changed

+28
-29
lines changed

1 file changed

+28
-29
lines changed

doc/haskell-mode.texi

+28-29
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ interpreter (e.g. GHCi).
6464
* Inferior Haskell interpreter:: How to interact with GHCi (1)
6565
* Interactive Haskell:: How to interact with GHCi (2)
6666
* Editing Cabal files:: Cabal support
67-
* Changing REPL target:: Start REPL with selected target (i.e. test,bench,etc.)
6867
* Browsing Haddocks:: Using @code{w3m} to browse documentation
6968
* Spell checking strings and comments:: Using @code{flyspell-prog-mode}
7069
* Aligning code:: Aligning code using @code{align-regexp}
@@ -1367,6 +1366,34 @@ you will be presented with the prompt:
13671366
λ>
13681367
@end example
13691368

1369+
@subsection Changing REPL target
1370+
1371+
@findex haskell-session-change-target
1372+
@vindex haskell-interactive-mode-hook
1373+
1374+
With @code{haskell-session-change-target} you can change the target for
1375+
REPL session.
1376+
1377+
1378+
After REPL session started, in @code{haskell-interactive-mode} buffer invoke the
1379+
@code{haskell-session-change-target} and select from available targets for
1380+
1381+
@cindex testing
1382+
- Testing
1383+
1384+
@cindex benchmarking
1385+
- Benchmark
1386+
1387+
- Executable
1388+
1389+
- Library
1390+
1391+
Answer ``yes'' to restart the session and run your tests, benchmarks, executables.
1392+
1393+
1394+
TODO/WRITEME
1395+
1396+
13701397
@subsection Bringing the REPL
13711398

13721399
If you don't know where the REPL buffer is, you can always bring it
@@ -1949,34 +1976,6 @@ with a prefix argument (i.e. @kbd{C-u}) @code{find-file-other-window} is
19491976
used to visit the @file{.cabal} file.
19501977
@code{haskell-cabal-visit-file} is bound to the key sequence @kbd{C-c v c}.
19511978

1952-
TODO/WRITEME
1953-
1954-
@node Changing REPL target
1955-
@chapter Changing REPL target
1956-
1957-
@findex haskell-session-change-target
1958-
@vindex haskell-interactive-mode-hook
1959-
1960-
With @code{haskell-session-change-target} you can change the target for
1961-
REPL session.
1962-
1963-
1964-
After REPL session started, in @code{haskell-interactive-mode} buffer invoke the
1965-
@code{haskell-session-change-target} and select from available targets for
1966-
1967-
@cindex testing
1968-
- Testing
1969-
1970-
@cindex benchmarking
1971-
- Benchmark
1972-
1973-
- Executable
1974-
1975-
- Library
1976-
1977-
Answer ``yes'' to restart the session and run your tests, benchmarks, executables.
1978-
1979-
19801979
TODO/WRITEME
19811980

19821981
@node Browsing Haddocks

0 commit comments

Comments
 (0)