summary refs log tree commit diff stats
path: root/lib/system/repr_v2.nim
diff options
context:
space:
mode:
authorringabout <43030857+ringabout@users.noreply.github.com>2022-08-24 19:38:30 +0800
committerGitHub <noreply@github.com>2022-08-24 13:38:30 +0200
commitb6bfe38ff5283f77d5e5e78da06d2710bc16afb6 (patch)
treeb1a8213c8627931d91737f27cb4bda48c8579657 /lib/system/repr_v2.nim
parent12f23d5ae8e4209dc9b1f40a0b792c6063ba78c5 (diff)
downloadNim-b6bfe38ff5283f77d5e5e78da06d2710bc16afb6.tar.gz
move formatfloat out of system (#20195)
* move formatfloat out of system

* fixes doc

* Update changelog.md

* careless

* fixes

* deprecate system/formatfloat

* better handling
Diffstat (limited to 'lib/system/repr_v2.nim')
-rw-r--r--lib/system/repr_v2.nim3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/system/repr_v2.nim b/lib/system/repr_v2.nim
index 6ab5f3c3f..0e9bec0f3 100644
--- a/lib/system/repr_v2.nim
+++ b/lib/system/repr_v2.nim
@@ -1,5 +1,8 @@
 include system/inclrtl
 
+when defined(nimPreviewSlimSystem):
+  import std/formatfloat
+
 proc isNamedTuple(T: typedesc): bool {.magic: "TypeTrait".}
   ## imported from typetraits