File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -80,5 +80,5 @@ haddock` or `stack haddock`.
8080
8181The external docs are served by ReadTheDocs at
8282https://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
8484dependencies, ` git submodule update --init ` , and then ` cd docs/ && make html ` .
Original file line number Diff line number Diff 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
247249You can also take an element off the end::
248250
You can’t perform that action at this time.
0 commit comments