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:
parent
bd199a8d31
commit
e94a3e5fcd
7 changed files with 28 additions and 11 deletions
24
lib/pure/prelude.nim
Normal file
24
lib/pure/prelude.nim
Normal 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]
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue