Resolve issue #7482 by removing the ability to create a new event manager.
[packages/base.git] / GHC / Event.hs
1 {-# LANGUAGE Trustworthy #-}
2
3 -- ----------------------------------------------------------------------------
4 -- | This module provides scalable event notification for file
5 -- descriptors and timeouts.
6 --
7 -- This module should be considered GHC internal.
8 --
9 -- ----------------------------------------------------------------------------
10
11 module GHC.Event
12 ( -- * Types
13 EventManager
14
15 -- * Creation
16 , getSystemEventManager
17
18 -- * Running
19 , loop
20
21 -- ** Stepwise running
22 , step
23 , shutdown
24
25 -- * Registering interest in I/O events
26 , Event
27 , evtRead
28 , evtWrite
29 , IOCallback
30 , FdKey(keyFd)
31 , registerFd
32 , registerFd_
33 , unregisterFd
34 , unregisterFd_
35 , closeFd
36
37 -- * Registering interest in timeout events
38 , TimeoutCallback
39 , TimeoutKey
40 , registerTimeout
41 , updateTimeout
42 , unregisterTimeout
43 ) where
44
45 import GHC.Event.Manager
46 import GHC.Event.Thread (getSystemEventManager)
47