Skip to content

Commit 49302ec

Browse files
authored
Merge pull request #901 from albertodvp/master
Update docs: note on ghci multiline mode
2 parents 0f4f7be + 47c0898 commit 49302ec

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

CONTRIBUTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,5 +80,5 @@ haddock` or `stack haddock`.
8080

8181
The external docs are served by ReadTheDocs at
8282
https://haskell-containers.readthedocs.io and live in the `docs/` directory. To
83-
build the docs locally run `pip install sphinx sphinx-autobuild` to install the
83+
build the docs locally run `pip install sphinx sphinx-autobuild sphinx_rtd_theme` to install the
8484
dependencies, `git submodule update --init`, and then `cd docs/ && make html`.

containers/docs/sequence.rst

+4-2
Original file line numberDiff line numberDiff line change
@@ -236,13 +236,15 @@ Let's do the same thing with sequences!
236236

237237
-- Imports the patterns to match on.
238238
import Data.Sequence (Seq (Empty, (:<|), (:|>)))
239+
import qualified Data.Sequence as Seq
239240

240241
case Seq.fromList [1, 2, 3] of
241242
Empty -> "empty sequence"
242-
x :<| xs -> "first:" ++ x ++ " rest:" ++ show xs
243+
x :<| xs -> "first:" ++ show x ++ " rest:" ++ show xs
243244
> "first:1 rest:fromList [2,3]"
244245

245-
.. NOTE:: You can't copy/paste this into GHCi because it's multiple lines.
246+
.. NOTE:: You can copy/paste this into GHCi using the syntax for multi-line input ``:{ ... :}`` or by enabling `multiline mode
247+
<https://downloads.haskell.org/~ghc/latest/docs/html/users_guide/ghci.html#multiline-input>`_ ``:set +m``.
246248

247249
You can also take an element off the end::
248250

0 commit comments

Comments
 (0)