Skip to content
Snippets Groups Projects
Commit 1cdc45b3 authored by Simon Marlow's avatar Simon Marlow
Browse files

[project @ 2000-03-13 10:54:49 by simonmar]

Add new exception: PutFullMVar for putting into an already full MVar.
parent 0d5d32bf
No related merge requests found
% -----------------------------------------------------------------------------
% $Id: PrelException.lhs,v 1.11 2000/01/30 10:25:28 simonmar Exp $
% $Id: PrelException.lhs,v 1.12 2000/03/13 10:54:49 simonmar Exp $
%
% (c) The GRAP/AQUA Project, Glasgow University, 1998
%
......@@ -38,6 +38,7 @@ data Exception
| AssertionFailed String -- Assertions
| DynException Dynamic -- Dynamic exceptions
| AsyncException AsyncException -- Externally generated errors
| PutFullMVar -- Put on a full MVar
| NonTermination
data ArithException
......@@ -83,6 +84,7 @@ instance Show Exception where
showsPrec _ (AssertionFailed err) = showString err
showsPrec _ (AsyncException e) = shows e
showsPrec _ (DynException _err) = showString "unknown exception"
showsPrec _ (PutFullMVar) = showString "putMVar: full MVar"
showsPrec _ (NonTermination) = showString "<<loop>>"
-- Primitives:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment