aboutsummaryrefslogtreecommitdiffstats
path: root/src/Store/Debug.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Store/Debug.hs')
-rw-r--r--src/Store/Debug.hs10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/Store/Debug.hs b/src/Store/Debug.hs
new file mode 100644
index 0000000..5e0b704
--- /dev/null
+++ b/src/Store/Debug.hs
@@ -0,0 +1,10 @@
+module Store.Debug
+ ( debug,
+ )
+where
+
+import Debug.Trace (trace)
+import Text.Printf (printf)
+
+debug :: Show a => String -> a -> a
+debug s x = trace (printf "%s: %s" s (show x)) x