[project @ 2002-09-13 18:21:46 by panne]
authorpanne <unknown>
Fri, 13 Sep 2002 18:21:46 +0000 (18:21 +0000)
committerpanne <unknown>
Fri, 13 Sep 2002 18:21:46 +0000 (18:21 +0000)
It looks like we need assert again...?!

GHC/Base.lhs

index 7ee7d7d..e3bc346 100644 (file)
@@ -595,14 +595,10 @@ id x                      =  x
 lazy :: a -> a
 lazy x = x
 
---     SLPJ: this was transferred from the TH branch
---     and I've forgotten what it was for... so I'll
---     comment it back out for now.  It conflicts with
---     'assert' in GHC.Prim
 -- Assertion function. This simply ignores its boolean argument.
 -- The compiler may rewrite it to (assertError line)
--- assert :: Bool -> a -> a
--- assert pred r = r
+assert :: Bool -> a -> a
+assert pred r = r
  
 -- constant function
 const                  :: a -> b -> a