projects
/
ghc-base.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
72f3710
)
[project @ 2002-09-16 11:24:20 by simonpj]
author
simonpj
<unknown>
Mon, 16 Sep 2002 11:24:20 +0000
(11:24 +0000)
committer
simonpj
<unknown>
Mon, 16 Sep 2002 11:24:20 +0000
(11:24 +0000)
Comments only
GHC/Base.lhs
patch
|
blob
|
history
diff --git
a/GHC/Base.lhs
b/GHC/Base.lhs
index
e3bc346
..
fe42991
100644
(file)
--- a/
GHC/Base.lhs
+++ b/
GHC/Base.lhs
@@
-597,6
+597,9
@@
lazy x = x
-- Assertion function. This simply ignores its boolean argument.
-- The compiler may rewrite it to (assertError line)
-- Assertion function. This simply ignores its boolean argument.
-- The compiler may rewrite it to (assertError line)
+-- SLPJ: in 5.04 etc 'assert' is in GHC.Prim,
+-- but from Template Haskell onwards it's simply
+-- defined here in Base.lhs
assert :: Bool -> a -> a
assert pred r = r
assert :: Bool -> a -> a
assert pred r = r