From af425841a63ee73603cc09510d95a36e646ddafd Mon Sep 17 00:00:00 2001 From: Tom Smeding Date: Thu, 19 Apr 2018 11:45:46 +0200 Subject: Build with stack --- Debug.hs | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Debug.hs (limited to 'Debug.hs') diff --git a/Debug.hs b/Debug.hs new file mode 100644 index 0000000..437f91a --- /dev/null +++ b/Debug.hs @@ -0,0 +1,23 @@ +{-# LANGUAGE CPP #-} + +module Debug where + +#if 0 + +import qualified Debug.Trace as Trace + +trace :: String -> a -> a +trace = Trace.trace + +traceShow :: (Show a) => a -> b -> b +traceShow = Trace.traceShow + +#else + +trace :: String -> a -> a +trace = flip const + +traceShow :: a -> b -> b +traceShow = flip const + +#endif -- cgit v1.2.3-54-g00ecf