diff options
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 |