Commit a5745d2b authored by Herbert Valerio Riedel's avatar Herbert Valerio Riedel 🕺 Committed by Austin Seipp
Browse files

Derive Generic instance for System.Exit.ExitCode

Reviewed By: austin

Differential Revision: https://phabricator.haskell.org/D830
parent edc059a4
{-# LANGUAGE Trustworthy #-} {-# LANGUAGE Trustworthy #-}
{-# LANGUAGE NoImplicitPrelude, MagicHash, {-# LANGUAGE DeriveGeneric, NoImplicitPrelude, MagicHash,
ExistentialQuantification #-} ExistentialQuantification #-}
{-# OPTIONS_GHC -funbox-strict-fields #-} {-# OPTIONS_GHC -funbox-strict-fields #-}
{-# OPTIONS_HADDOCK hide #-} {-# OPTIONS_HADDOCK hide #-}
...@@ -44,6 +44,7 @@ module GHC.IO.Exception ( ...@@ -44,6 +44,7 @@ module GHC.IO.Exception (
) where ) where
import GHC.Base import GHC.Base
import GHC.Generics
import GHC.List import GHC.List
import GHC.IO import GHC.IO
import GHC.Show import GHC.Show
...@@ -225,7 +226,7 @@ data ExitCode ...@@ -225,7 +226,7 @@ data ExitCode
-- The exact interpretation of the code is -- The exact interpretation of the code is
-- operating-system dependent. In particular, some values -- operating-system dependent. In particular, some values
-- may be prohibited (e.g. 0 on a POSIX-compliant system). -- may be prohibited (e.g. 0 on a POSIX-compliant system).
deriving (Eq, Ord, Read, Show) deriving (Eq, Ord, Read, Show, Generic)
instance Exception ExitCode instance Exception ExitCode
......
...@@ -31,6 +31,8 @@ ...@@ -31,6 +31,8 @@
* `Complex` now has a `Generic` instance * `Complex` now has a `Generic` instance
* `System.Exit.ExitCode` now has a `Generic` instance
## 4.8.0.0 *Mar 2015* ## 4.8.0.0 *Mar 2015*
* Bundled with GHC 7.10.1 * Bundled with GHC 7.10.1
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment