[commit: ghc] wip/oneShot: Make travis happy (4a84e61)
git at git.haskell.org
git at git.haskell.org
Sat Oct 25 14:53:50 UTC 2014
Repository : ssh://git@git.haskell.org/ghc
On branch : wip/oneShot
Link : http://ghc.haskell.org/trac/ghc/changeset/4a84e61357540062e72f5c844e8ecb4e4c3986ac/ghc
>---------------------------------------------------------------
commit 4a84e61357540062e72f5c844e8ecb4e4c3986ac
Author: Joachim Breitner <mail at joachim-breitner.de>
Date: Tue Oct 7 13:37:23 2014 +0200
Make travis happy
>---------------------------------------------------------------
4a84e61357540062e72f5c844e8ecb4e4c3986ac
libraries/base/GHC/Event/Manager.hs | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/libraries/base/GHC/Event/Manager.hs b/libraries/base/GHC/Event/Manager.hs
index 2041379..29edd97 100644
--- a/libraries/base/GHC/Event/Manager.hs
+++ b/libraries/base/GHC/Event/Manager.hs
@@ -167,10 +167,10 @@ newDefaultBackend = error "no back end for this platform"
-- | Create a new event manager.
new :: Bool -> IO EventManager
-new oneShot = newWith oneShot =<< newDefaultBackend
+new isOneShot = newWith isOneShot =<< newDefaultBackend
newWith :: Bool -> Backend -> IO EventManager
-newWith oneShot be = do
+newWith isOneShot be = do
iofds <- fmap (listArray (0, callbackArraySize-1)) $
replicateM callbackArraySize (newMVar =<< IT.new 8)
ctrl <- newControl False
@@ -187,7 +187,7 @@ newWith oneShot be = do
, emState = state
, emUniqueSource = us
, emControl = ctrl
- , emOneShot = oneShot
+ , emOneShot = isOneShot
, emLock = lockVar
}
registerControlFd mgr (controlReadFd ctrl) evtRead
More information about the ghc-commits
mailing list