[commit: ghc] wip/oneShot: Make travis happy (a28f9da)
git at git.haskell.org
git at git.haskell.org
Tue Oct 7 11:37:23 UTC 2014
Repository : ssh://git@git.haskell.org/ghc
On branch : wip/oneShot
Link : http://ghc.haskell.org/trac/ghc/changeset/a28f9da6c66ee722f5f9a796dbff0037262f5a61/ghc
>---------------------------------------------------------------
commit a28f9da6c66ee722f5f9a796dbff0037262f5a61
Author: Joachim Breitner <mail at joachim-breitner.de>
Date: Tue Oct 7 13:37:23 2014 +0200
Make travis happy
>---------------------------------------------------------------
a28f9da6c66ee722f5f9a796dbff0037262f5a61
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