From 1756da579fde805b1e95ccb1a51d7c647bbf5b3c Mon Sep 17 00:00:00 2001 From: Taylor R Campbell Date: Wed, 9 Jan 2019 03:49:23 +0000 Subject: [PATCH] Restore printing strings in #[uri ...]. --- src/runtime/url.scm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/runtime/url.scm b/src/runtime/url.scm index 4b76d6331..abccf69e6 100644 --- a/src/runtime/url.scm +++ b/src/runtime/url.scm @@ -41,6 +41,11 @@ USA. (fragment uri-fragment) (string uri->string)) +(define-print-method uri? + (standard-print-method 'uri + (lambda (uri) + (list (uri->string uri))))) + (define (make-uri scheme authority path query fragment) (let ((path (if (equal? path '("")) '() path))) (if scheme (guarantee uri-scheme? scheme 'make-uri)) -- 2.25.1