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