From 2e8a6c42c77658e25443217876173e64ce8b0d90 Mon Sep 17 00:00:00 2001 From: panne Date: Sun, 18 Jun 2000 21:12:31 +0000 Subject: [PATCH] [project @ 2000-06-18 21:12:31 by panne] Added Eq and Ord instances for ArrayException --- ghc/lib/std/PrelException.lhs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ghc/lib/std/PrelException.lhs b/ghc/lib/std/PrelException.lhs index 2d1c5c8..5dd4a4a 100644 --- a/ghc/lib/std/PrelException.lhs +++ b/ghc/lib/std/PrelException.lhs @@ -1,5 +1,5 @@ % ----------------------------------------------------------------------------- -% $Id: PrelException.lhs,v 1.20 2000/06/09 13:49:35 simonmar Exp $ +% $Id: PrelException.lhs,v 1.21 2000/06/18 21:12:31 panne Exp $ % % (c) The GRAP/AQUA Project, Glasgow University, 1998 % @@ -64,6 +64,7 @@ data AsyncException data ArrayException = IndexOutOfBounds String -- out-of-range array access | UndefinedElement String -- evaluating an undefined element + deriving (Eq, Ord) stackOverflow, heapOverflow :: Exception -- for the RTS stackOverflow = AsyncException StackOverflow -- 1.7.10.4