File tree 2 files changed +5
-3
lines changed
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`.
80
80
81
81
The external docs are served by ReadTheDocs at
82
82
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
84
84
dependencies, ` 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!
236
236
237
237
-- Imports the patterns to match on.
238
238
import Data.Sequence (Seq (Empty, (:<|), (:|>)))
239
+ import qualified Data.Sequence as Seq
239
240
240
241
case Seq.fromList [1, 2, 3] of
241
242
Empty -> "empty sequence"
242
- x :<| xs -> "first:" ++ x ++ " rest:" ++ show xs
243
+ x :<| xs -> "first:" ++ show x ++ " rest:" ++ show xs
243
244
> "first:1 rest:fromList [2,3]"
244
245
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 ``.
246
248
247
249
You can also take an element off the end::
248
250
You can’t perform that action at this time.
0 commit comments