[commit: ghc] master: Add Data instance for Const (07e40e9)
git at git.haskell.org
git at git.haskell.org
Thu Nov 17 15:01:52 UTC 2016
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/07e40e905357db805e6dbb557b35d6bdf76eaec6/ghc
>---------------------------------------------------------------
commit 07e40e905357db805e6dbb557b35d6bdf76eaec6
Author: Ryan Scott <ryan.gl.scott at gmail.com>
Date: Thu Nov 17 09:55:55 2016 -0500
Add Data instance for Const
>---------------------------------------------------------------
07e40e905357db805e6dbb557b35d6bdf76eaec6
libraries/base/Data/Data.hs | 4 ++++
libraries/base/changelog.md | 2 ++
2 files changed, 6 insertions(+)
diff --git a/libraries/base/Data/Data.hs b/libraries/base/Data/Data.hs
index df37ab1..e43ec74 100644
--- a/libraries/base/Data/Data.hs
+++ b/libraries/base/Data/Data.hs
@@ -9,6 +9,7 @@
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE StandaloneDeriving #-}
{-# LANGUAGE Trustworthy #-}
+{-# LANGUAGE TypeInType #-}
{-# LANGUAGE TypeOperators #-}
-----------------------------------------------------------------------------
@@ -1197,6 +1198,9 @@ deriving instance (Coercible a b, Data a, Data b) => Data (Coercion a b)
-- | @since 4.9.0.0
deriving instance Data a => Data (Identity a)
+-- | @since 4.10.0.0
+deriving instance (Typeable k, Data a, Typeable (b :: k)) => Data (Const a b)
+
-- | @since 4.7.0.0
deriving instance Data Version
diff --git a/libraries/base/changelog.md b/libraries/base/changelog.md
index a01c878..dcc1719 100644
--- a/libraries/base/changelog.md
+++ b/libraries/base/changelog.md
@@ -26,6 +26,8 @@
* Add `Semigroup` instance for `IO`, as well as for `Event` and `Lifetime`
from `GHC.Event` (#12464)
+ * Add `Data` instance for `Const` (#12438)
+
## 4.9.0.0 *May 2016*
* Bundled with GHC 8.0
More information about the ghc-commits
mailing list