X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Flib%2Fstd%2FPrelIOBase.lhs;h=51a16dc16faaec958bafe5b0bce5f33bbb29c7bc;hb=239e9471e104fd88ec93bf42623c3a68a496657a;hp=ea459d3bff58ddc26c84eb99bca01b2dce97b957;hpb=33a7aa8bb2584a8e4cb8bdae27f6d56696f2dea5;p=ghc-hetmet.git diff --git a/ghc/lib/std/PrelIOBase.lhs b/ghc/lib/std/PrelIOBase.lhs index ea459d3..51a16dc 100644 --- a/ghc/lib/std/PrelIOBase.lhs +++ b/ghc/lib/std/PrelIOBase.lhs @@ -1,5 +1,5 @@ % ------------------------------------------------------------------------------ -% $Id: PrelIOBase.lhs,v 1.46 2002/01/22 13:54:22 simonmar Exp $ +% $Id: PrelIOBase.lhs,v 1.47 2002/01/29 17:12:53 simonmar Exp $ % % (c) The University of Glasgow, 1994-2001 % @@ -461,6 +461,25 @@ instance Show Exception where showsPrec _ (Deadlock) = showString "<>" showsPrec _ (UserError err) = showString err +instance Eq Exception where + IOException e1 == IOException e2 = e1 == e2 + ArithException e1 == ArithException e2 = e1 == e2 + ArrayException e1 == ArrayException e2 = e1 == e2 + ErrorCall e1 == ErrorCall e2 = e1 == e2 + ExitException e1 == ExitException e2 = e1 == e2 + NoMethodError e1 == NoMethodError e2 = e1 == e2 + PatternMatchFail e1 == PatternMatchFail e2 = e1 == e2 + RecSelError e1 == RecSelError e2 = e1 == e2 + RecConError e1 == RecConError e2 = e1 == e2 + RecUpdError e1 == RecUpdError e2 = e1 == e2 + AssertionFailed e1 == AssertionFailed e2 = e1 == e2 + DynException _ == DynException _ = False -- incomparable + AsyncException e1 == AsyncException e2 = e1 == e2 + BlockedOnDeadMVar == BlockedOnDeadMVar = True + NonTermination == NonTermination = True + Deadlock == Deadlock = True + UserError e1 == UserError e2 = e1 == e2 + -- ----------------------------------------------------------------------------- -- The ExitCode type