From d1ab5c3837c3c2e30eee18e7c1893a6741475e17 Mon Sep 17 00:00:00 2001 From: simonmar Date: Wed, 14 Jul 1999 08:33:38 +0000 Subject: [PATCH] [project @ 1999-07-14 08:33:38 by simonmar] Add NonTermination to the exception type. Prints as "<>" (better suggestions welcome). --- ghc/lib/std/PrelException.lhs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ghc/lib/std/PrelException.lhs b/ghc/lib/std/PrelException.lhs index 8fa7228..56d116e 100644 --- a/ghc/lib/std/PrelException.lhs +++ b/ghc/lib/std/PrelException.lhs @@ -1,5 +1,5 @@ % ----------------------------------------------------------------------------- -% $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 "<>" -- Primitives: -- 1.7.10.4