]> gitweb @ CieloNegro.org - Lucu.git/blobdiff - Network/HTTP/Lucu/Abortion.hs
No need to define our own methods for Exception Abortion
[Lucu.git] / Network / HTTP / Lucu / Abortion.hs
index 52e7e23d6047b2e0fb6d824fa500e1f393269414..33f22abb9045ca962e4ef9a62449b34d56662296 100644 (file)
@@ -38,9 +38,7 @@ data Abortion = Abortion {
     , aboMessage :: !(Maybe String)
     } deriving (Show, Typeable)
 
-instance Exception Abortion where
-    toException = SomeException
-    fromException (SomeException e) = cast e
+instance Exception Abortion
 
 -- |Computation of @'abort' status headers msg@ aborts the
 -- 'Network.HTTP.Lucu.Resource.Resource' monad with given status,