From 57c5c671f24503a2e3d3205e7a70ce0a66bab2e1 Mon Sep 17 00:00:00 2001 From: Bertram Felgenhauer Date: Sat, 16 Aug 2008 13:26:31 +0000 Subject: [PATCH] Fix oversight in Control.OldException The NonTermination constructor slipped through in the Exception instance. --- Control/OldException.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Control/OldException.hs b/Control/OldException.hs index f6a0740..cdd5af8 100644 --- a/Control/OldException.hs +++ b/Control/OldException.hs @@ -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) -- 1.7.10.4