From 94ff2134c52f5c1bcc0e5f20c5f760a755c24459 Mon Sep 17 00:00:00 2001
From: Oleg Alexander <olegalexander@gmail.com>
Date: Sat, 11 Nov 2023 02:16:12 +0000
Subject: [PATCH] Update doc string for traceShow

Updated doc string for traceShow.
---
 libraries/base/src/Debug/Trace.hs | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/libraries/base/src/Debug/Trace.hs b/libraries/base/src/Debug/Trace.hs
index b7532c234387..4d3f8e3f4f97 100644
--- a/libraries/base/src/Debug/Trace.hs
+++ b/libraries/base/src/Debug/Trace.hs
@@ -143,13 +143,15 @@ traceId a = trace a a
 Like 'trace', but uses 'show' on the argument to convert it to a 'String'.
 
 This makes it convenient for printing the values of interesting variables or
-expressions inside a function. For example here we print the value of the
+expressions inside a function. For example, here we print the values of the
 variables @x@ and @y@:
 
->>> let f x y = traceShow (x,y) (x + y) in f (1+2) 5
-(3,5)
+>>> let f x y = traceShow ("x", x, "y", y) (x + y) in f (1+2) 5
+("x",3,"y",5)
 8
 
+Note in this example we also create simple labels just by including some strings.
+
 -}
 traceShow :: Show a => a -> b -> b
 traceShow = trace . show
-- 
GitLab