summary refs log tree commit diff stats
path: root/lib/pure
diff options
context:
space:
mode:
authorTimothee Cour <timothee.cour2@gmail.com>2021-02-20 09:08:13 -0800
committerGitHub <noreply@github.com>2021-02-20 18:08:13 +0100
commite94a3e5fcd4f36f090520a859e587c6019ba296b (patch)
tree505109bd9b5ba1815131b64fabb91c8f9ec93703 /lib/pure
parentbd199a8d31a6c93b0bde4526b3f9eb5f677625ce (diff)
downloadNim-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.nim24
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]
+