Better error handling in the IO manager thread
[ghc-base.git] / GHC / Base.lhs
index edb960e..2cca920 100644 (file)
@@ -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.
@@ -710,7 +711,10 @@ lazy x = x
 --     defined here in Base.lhs
 assert :: Bool -> a -> a
 assert pred r = r
+
+breakpoint :: a -> a
+breakpoint r = r
+
 -- | Constant function.
 const                  :: a -> b -> a
 const x _              =  x