Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
e2b25405
Commit
e2b25405
authored
Mar 26, 1999
by
sof
Browse files
[project @ 1999-03-26 19:45:51 by sof]
assertError: raise an AssertionFailed exception
parent
43c32eb6
Changes
1
Hide whitespace changes
Inline
Side-by-side
ghc/lib/std/PrelErr.lhs
View file @
e2b25405
...
...
@@ -163,7 +163,7 @@ recUpdError s = throw (RecUpdError (untangle s "Record doesn't contain field(
assertError :: String -> Bool -> a -> a
assertError str pred v
| pred = v
| otherwise =
error
(untangle str "Assertion failed")
| otherwise =
throw (AssertionFailed
(untangle str "Assertion failed")
)
\end{code}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment