diff options
author | Alexander Foremny <aforemny@posteo.de> | 2024-02-09 07:16:35 +0100 |
---|---|---|
committer | Alexander Foremny <aforemny@posteo.de> | 2024-02-09 07:24:10 +0100 |
commit | 9e552700b1ac0d0812956a90845ddf6889c0218d (patch) | |
tree | 994858cd19dde2c574c6214106bedb6a2c0722cd /app/Debug.hs | |
parent | 11969ba7aed38e6e35d51d52e8eab9b46a0c6203 (diff) |
refactor `Debug`
Diffstat (limited to 'app/Debug.hs')
-rw-r--r-- | app/Debug.hs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/app/Debug.hs b/app/Debug.hs new file mode 100644 index 0000000..b28a967 --- /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" s (show x)) x |