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

Derive Generic instance for Data.Version.Version

Reviewed By: austin

Differential Revision: https://phabricator.haskell.org/D827
parent a5745d2b
{-# LANGUAGE Safe #-} {-# LANGUAGE Safe #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE NoImplicitPrelude #-} {-# LANGUAGE NoImplicitPrelude #-}
----------------------------------------------------------------------------- -----------------------------------------------------------------------------
...@@ -43,6 +44,7 @@ import Data.Int ( Int ) ...@@ -43,6 +44,7 @@ import Data.Int ( Int )
import Data.List import Data.List
import Data.Ord import Data.Ord
import Data.String ( String ) import Data.String ( String )
import GHC.Generics
import GHC.Read import GHC.Read
import GHC.Show import GHC.Show
import Text.ParserCombinators.ReadP import Text.ParserCombinators.ReadP
...@@ -91,7 +93,7 @@ data Version = ...@@ -91,7 +93,7 @@ data Version =
-- The interpretation of the list of tags is entirely dependent -- The interpretation of the list of tags is entirely dependent
-- on the entity that this version applies to. -- on the entity that this version applies to.
} }
deriving (Read,Show) deriving (Read,Show,Generic)
{-# DEPRECATED versionTags "See GHC ticket #2496" #-} {-# DEPRECATED versionTags "See GHC ticket #2496" #-}
-- TODO. Remove all references to versionTags in GHC 7.12 release. -- TODO. Remove all references to versionTags in GHC 7.12 release.
......
...@@ -33,6 +33,8 @@ ...@@ -33,6 +33,8 @@
* `System.Exit.ExitCode` now has a `Generic` instance * `System.Exit.ExitCode` now has a `Generic` instance
* `Data.Version.Version` 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