move prelude so that include std/prelude also works (#17110)

* move prelude so that `include std/prelude` also works

* add test
This commit is contained in:
Timothee Cour 2021-02-20 09:08:13 -08:00 • committed by GitHub
commit e94a3e5fcd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 28 additions and 11 deletions

24
lib/pure/prelude.nim Normal file
View file

@ -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]