X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=Control%2FException.hs;h=cb4ba3e98f7ba384e24f49e051cf8a969bc69018;hb=819adca5f17b40ee129e4a30edf685f817febbf9;hp=7551e2558231e34ec4577f75392f255c77373ab0;hpb=0425e42d530ad34fbef2529a20ba326dbd4109b7;p=ghc-base.git diff --git a/Control/Exception.hs b/Control/Exception.hs index 7551e25..cb4ba3e 100644 --- a/Control/Exception.hs +++ b/Control/Exception.hs @@ -467,23 +467,6 @@ Similar arguments apply for other interruptible operations like 'System.IO.openFile'. -} --- ----------------------------------------------------------------------------- --- Assert - -#ifdef __HADDOCK__ --- | If the first argument evaluates to 'True', then the result is the --- second argument. Otherwise an 'AssertionFailed' exception is raised, --- containing a 'String' with the source file and line number of the --- 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@ --- option is give). When assertions are turned off, the first --- argument to 'assert' is ignored, and the second argument is --- returned as the result. -assert :: Bool -> a -> a -#endif - #ifndef __GLASGOW_HASKELL__ assert :: Bool -> a -> a assert True x = x