From: simonmar Date: Wed, 5 Oct 2005 13:15:44 +0000 (+0000) Subject: [project @ 2005-10-05 13:15:44 by simonmar] X-Git-Tag: cmm-merge2~18 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;ds=sidebyside;h=4fa950cfe56b2b3378dca9e5fe177d5c3a625b0d;p=haskell-directory.git [project @ 2005-10-05 13:15:44 by simonmar] mention that -O turns assertions off --- 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.