summaryrefslogtreecommitdiff
path: root/libraries/base/GHC/Exception.hs
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/base/GHC/Exception.hs')
-rw-r--r--libraries/base/GHC/Exception.hs6
1 files changed, 2 insertions, 4 deletions
diff --git a/libraries/base/GHC/Exception.hs b/libraries/base/GHC/Exception.hs
index be9e6f956c..aeaef20805 100644
--- a/libraries/base/GHC/Exception.hs
+++ b/libraries/base/GHC/Exception.hs
@@ -59,7 +59,7 @@ instance of the @Exception@ class. The simplest case is a new exception
type directly below the root:
> data MyException = ThisException | ThatException
-> deriving (Show, Typeable)
+> deriving Show
>
> instance Exception MyException
@@ -79,7 +79,6 @@ of exceptions:
> -- Make the root exception type for all the exceptions in a compiler
>
> data SomeCompilerException = forall e . Exception e => SomeCompilerException e
-> deriving Typeable
>
> instance Show SomeCompilerException where
> show (SomeCompilerException e) = show e
@@ -98,7 +97,6 @@ of exceptions:
> -- Make a subhierarchy for exceptions in the frontend of the compiler
>
> data SomeFrontendException = forall e . Exception e => SomeFrontendException e
-> deriving Typeable
>
> instance Show SomeFrontendException where
> show (SomeFrontendException e) = show e
@@ -119,7 +117,7 @@ of exceptions:
> -- Make an exception type for a particular frontend compiler exception
>
> data MismatchedParentheses = MismatchedParentheses
-> deriving (Typeable, Show)
+> deriving Show
>
> instance Exception MismatchedParentheses where
> toException = frontendExceptionToException