summary refs log tree commit diff stats
path: root/lib/std/paths.nim
diff options
context:
space:
mode:
Diffstat (limited to 'lib/std/paths.nim')
-rw-r--r--lib/std/paths.nim3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/std/paths.nim b/lib/std/paths.nim
index b488d2fea..ac2e5cea4 100644
--- a/lib/std/paths.nim
+++ b/lib/std/paths.nim
@@ -25,6 +25,9 @@ export ReadDirEffect, WriteDirEffect
 type
   Path* = distinct string
 
+template `$`*(x: Path): string =
+  string(x)
+
 func `==`*(x, y: Path): bool {.inline.} =
   ## Compares two paths.
   ##