summaryrefslogtreecommitdiff
path: root/libraries/base/Data/Data.hs
diff options
context:
space:
mode:
authorchessai <chessai1996@gmail.com>2018-04-11 18:28:41 -0400
committerBen Gamari <ben@smart-cactus.org>2018-05-27 16:43:42 -0400
commitb67e8a3f107f7e7b2cefb526a5f956a4a3abc852 (patch)
treeefc2140c4714dc1d756f92d8f2663187ddeaf298 /libraries/base/Data/Data.hs
parent6a9b9b431dcc94849d14c13639eb2f713e5aa1f4 (diff)
downloadhaskell-b67e8a3f107f7e7b2cefb526a5f956a4a3abc852.tar.gz
base: Introduce Data.Monoid.Ap
This data type witnesses the lifting of a monoid into an applicative pointwise.
Diffstat (limited to 'libraries/base/Data/Data.hs')
-rw-r--r--libraries/base/Data/Data.hs3
1 files changed, 3 insertions, 0 deletions
diff --git a/libraries/base/Data/Data.hs b/libraries/base/Data/Data.hs
index 930b4b8883..6d214907e4 100644
--- a/libraries/base/Data/Data.hs
+++ b/libraries/base/Data/Data.hs
@@ -1283,6 +1283,9 @@ deriving instance Data a => Data (Last a)
-- | @since 4.8.0.0
deriving instance (Data (f a), Data a, Typeable f) => Data (Alt f a)
+-- | @since 4.12.0.0
+deriving instance (Data (f a), Data a, Typeable f) => Data (Ap f a)
+
----------------------------------------------------------------------------
-- Data instances for GHC.Generics representations