From 71847273007b8346735f6ec34bfcc8750e2c6ecd Mon Sep 17 00:00:00 2001 From: Ian Lynagh Date: Sat, 29 Mar 2008 13:57:55 +0000 Subject: Put debugIsOn in Util, rather than rely on it being CPPed in --- compiler/utils/Util.lhs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'compiler/utils') diff --git a/compiler/utils/Util.lhs b/compiler/utils/Util.lhs index 59f3b4740d..9537ae1f37 100644 --- a/compiler/utils/Util.lhs +++ b/compiler/utils/Util.lhs @@ -6,6 +6,7 @@ \begin{code} module Util ( + debugIsOn, -- general list processing zipEqual, zipWithEqual, zipWith3Equal, zipWith4Equal, @@ -105,6 +106,21 @@ import System.Time ( ClockTime ) infixr 9 `thenCmp` \end{code} +%************************************************************************ +%* * +\subsection{-DDEBUG} +%* * +%************************************************************************ + +\begin{code} +debugIsOn :: Bool +#ifdef DEBUG +debugIsOn = True +#else +debugIsOn = False +#endif +\end{code} + %************************************************************************ %* * \subsection{A for loop} -- cgit v1.2.1