From: panne Date: Sun, 18 Jun 2000 21:12:31 +0000 (+0000) Subject: [project @ 2000-06-18 21:12:31 by panne] X-Git-Tag: Approximately_9120_patches~4179 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=2e8a6c42c77658e25443217876173e64ce8b0d90;p=ghc-hetmet.git [project @ 2000-06-18 21:12:31 by panne] Added Eq and Ord instances for ArrayException --- 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