summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2015-04-25 09:13:49 +0200
committerHerbert Valerio Riedel <hvr@gnu.org>2015-04-25 09:49:19 +0200
commit9a0c17950fdfd0c89c672da9d8b25a419f66c1f8 (patch)
treeeba21147bc9c31ed778e0b0b05f2447ed31191ef
parent75adc352549a43d4c37bd3bdade55cecf3d75bb1 (diff)
downloadhaskell-9a0c17950fdfd0c89c672da9d8b25a419f66c1f8.tar.gz
base: Export GHC.Event(.Internal).Lifetime
This was an unfortunate oversight in the original event manager rework patch. Fixes #10308 Differential Revision: https://phabricator.haskell.org/D845
-rw-r--r--libraries/base/GHC/Event.hs1
-rw-r--r--libraries/base/GHC/Event/Internal.hs2
-rw-r--r--libraries/base/changelog.md2
3 files changed, 5 insertions, 0 deletions
diff --git a/libraries/base/GHC/Event.hs b/libraries/base/GHC/Event.hs
index 436914cf8a..9f1d3dfd73 100644
--- a/libraries/base/GHC/Event.hs
+++ b/libraries/base/GHC/Event.hs
@@ -25,6 +25,7 @@ module GHC.Event
, evtWrite
, IOCallback
, FdKey(keyFd)
+ , Lifetime(..)
, registerFd
, unregisterFd
, unregisterFd_
diff --git a/libraries/base/GHC/Event/Internal.hs b/libraries/base/GHC/Event/Internal.hs
index c18bd7f394..3b75c8bb40 100644
--- a/libraries/base/GHC/Event/Internal.hs
+++ b/libraries/base/GHC/Event/Internal.hs
@@ -84,6 +84,8 @@ evtConcat = foldl' evtCombine evtNothing
{-# INLINE evtConcat #-}
-- | The lifetime of a registration.
+--
+-- @since 4.8.1.0
data Lifetime = OneShot | MultiShot
deriving (Show, Eq)
diff --git a/libraries/base/changelog.md b/libraries/base/changelog.md
index 813ac6bf25..ad3a74dc72 100644
--- a/libraries/base/changelog.md
+++ b/libraries/base/changelog.md
@@ -39,6 +39,8 @@
* Bundled with GHC 7.10.2
+ * `Lifetime` is now exported from `GHC.Event`
+
## 4.8.0.0 *Mar 2015*
* Bundled with GHC 7.10.1