From 4fa950cfe56b2b3378dca9e5fe177d5c3a625b0d Mon Sep 17 00:00:00 2001 From: simonmar Date: Wed, 5 Oct 2005 13:15:44 +0000 Subject: [PATCH] [project @ 2005-10-05 13:15:44 by simonmar] mention that -O turns assertions off --- GHC/Base.lhs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/GHC/Base.lhs b/GHC/Base.lhs index edb960e..8278dbb 100644 --- a/GHC/Base.lhs +++ b/GHC/Base.lhs @@ -700,7 +700,8 @@ lazy x = x -- call to 'assert'. -- -- Assertions can normally be turned on or off with a compiler flag --- (for GHC, assertions are normally on unless the @-fignore-asserts@ +-- (for GHC, assertions are normally on unless optimisation is turned on +-- with @-O@ or the @-fignore-asserts@ -- option is given). When assertions are turned off, the first -- argument to 'assert' is ignored, and the second argument is -- returned as the result. -- 1.7.10.4