From 8030de438d98732fda5c8681fc5afe4cdea71562 Mon Sep 17 00:00:00 2001 From: Alexander Foremny Date: Fri, 20 Oct 2023 10:40:02 +0200 Subject: add `--edit` flag to `show` command --- app/Debug.hs | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 app/Debug.hs (limited to 'app/Debug.hs') diff --git a/app/Debug.hs b/app/Debug.hs new file mode 100644 index 0000000..c6549a6 --- /dev/null +++ b/app/Debug.hs @@ -0,0 +1,7 @@ +module Debug where + +import Debug.Trace (trace) +import Text.Printf (printf) + +debug :: Show a => String -> a -> a +debug s x = trace (printf "%s: %s\n" s (show x)) x -- cgit v1.2.3