diff options
author | Timothee Cour <timothee.cour2@gmail.com> | 2021-02-20 09:08:13 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-20 18:08:13 +0100 |
commit | e94a3e5fcd4f36f090520a859e587c6019ba296b (patch) | |
tree | 505109bd9b5ba1815131b64fabb91c8f9ec93703 /lib/pure | |
parent | bd199a8d31a6c93b0bde4526b3f9eb5f677625ce (diff) | |
download | Nim-e94a3e5fcd4f36f090520a859e587c6019ba296b.tar.gz |
move prelude so that `include std/prelude` also works (#17110)
* move prelude so that `include std/prelude` also works * add test
Diffstat (limited to 'lib/pure')
-rw-r--r-- | lib/pure/prelude.nim | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/lib/pure/prelude.nim b/lib/pure/prelude.nim new file mode 100644 index 000000000..5da608961 --- /dev/null +++ b/lib/pure/prelude.nim @@ -0,0 +1,24 @@ +# +# +# Nim's Runtime Library +# (c) Copyright 2012 Andreas Rumpf +# +# See the file "copying.txt", included in this +# distribution, for details about the copyright. +# + +## This is an include file that simply imports common modules for your +## convenience: +## +## .. code-block:: nim +## include std/prelude +## +## Same as: +## +## .. code-block:: nim +## import std/[os, strutils, times, parseutils, hashes, tables, sets, sequtils, parseopt] + +# xxx deduplicate with prelude.rst + +import std/[os, strutils, times, parseutils, hashes, tables, sets, sequtils, parseopt] + |