Fix oversight in Control.OldException
authorBertram Felgenhauer <int-e@gmx.de>
Sat, 16 Aug 2008 13:26:31 +0000 (13:26 +0000)
committerBertram Felgenhauer <int-e@gmx.de>
Sat, 16 Aug 2008 13:26:31 +0000 (13:26 +0000)
The NonTermination constructor slipped through in the Exception instance.

Control/OldException.hs

index f6a0740..cdd5af8 100644 (file)
@@ -748,7 +748,7 @@ instance New.Exception Exception where
   toException (ExitException exc)    = SomeException exc
   toException (IOException exc)      = SomeException exc
   toException (NoMethodError err)    = SomeException (New.NoMethodError err)
-  toException NonTermination         = SomeException NonTermination
+  toException NonTermination         = SomeException New.NonTermination
   toException (PatternMatchFail err) = SomeException (New.PatternMatchFail err)
   toException (RecConError err)      = SomeException (New.RecConError err)
   toException (RecSelError err)      = SomeException (New.RecSelError err)