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

[project @ 1999-07-14 08:33:38 by simonmar]

Add NonTermination to the exception type.  Prints as "<<loop>>"
(better suggestions welcome).
parent 8c0bd142
No related merge requests found
% -----------------------------------------------------------------------------
% $Id: PrelException.lhs,v 1.7 1999/05/18 14:59:16 simonpj Exp $
% $Id: PrelException.lhs,v 1.8 1999/07/14 08:33:38 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
| NonTermination
data ArithException
= Overflow
......@@ -82,6 +83,7 @@ instance Show Exception where
showsPrec _ (AssertionFailed err) = showString err
showsPrec _ (AsyncException e) = shows e
showsPrec _ (DynException _err) = showString "unknown exception"
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