diff options
author | Herbert Valerio Riedel <hvr@gnu.org> | 2015-04-14 01:12:38 -0500 |
---|---|---|
committer | Austin Seipp <austin@well-typed.com> | 2015-04-14 01:19:24 -0500 |
commit | c327393314a27ea77716c25b9cf56d45960f7876 (patch) | |
tree | 116a81a611aacf29bc4ec152e59bcdd3cfa6e560 /libraries | |
parent | a5745d2b3112312a9e8c486142fb99b9d02e9827 (diff) | |
download | haskell-c327393314a27ea77716c25b9cf56d45960f7876.tar.gz |
Derive Generic instance for Data.Version.Version
Reviewed By: austin
Differential Revision: https://phabricator.haskell.org/D827
Diffstat (limited to 'libraries')
-rw-r--r-- | libraries/base/Data/Version.hs | 4 | ||||
-rw-r--r-- | libraries/base/changelog.md | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/libraries/base/Data/Version.hs b/libraries/base/Data/Version.hs index 20060c48ba..aba8cf7f74 100644 --- a/libraries/base/Data/Version.hs +++ b/libraries/base/Data/Version.hs @@ -1,4 +1,5 @@ {-# LANGUAGE Safe #-} +{-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE NoImplicitPrelude #-} ----------------------------------------------------------------------------- @@ -43,6 +44,7 @@ import Data.Int ( Int ) import Data.List import Data.Ord import Data.String ( String ) +import GHC.Generics import GHC.Read import GHC.Show import Text.ParserCombinators.ReadP @@ -91,7 +93,7 @@ data Version = -- The interpretation of the list of tags is entirely dependent -- on the entity that this version applies to. } - deriving (Read,Show) + deriving (Read,Show,Generic) {-# DEPRECATED versionTags "See GHC ticket #2496" #-} -- TODO. Remove all references to versionTags in GHC 7.12 release. diff --git a/libraries/base/changelog.md b/libraries/base/changelog.md index 56b9faedf1..5bf5418593 100644 --- a/libraries/base/changelog.md +++ b/libraries/base/changelog.md @@ -33,6 +33,8 @@ * `System.Exit.ExitCode` now has a `Generic` instance + * `Data.Version.Version` now has a `Generic` instance + ## 4.8.0.0 *Mar 2015* * Bundled with GHC 7.10.1 |