diff options
author | Herbert Valerio Riedel <hvr@gnu.org> | 2014-09-18 23:05:31 +0200 |
---|---|---|
committer | Herbert Valerio Riedel <hvr@gnu.org> | 2014-09-18 23:07:13 +0200 |
commit | 8b9083655f34120b47fe407123272e0687e0bd60 (patch) | |
tree | aa8cf339f406eb29fc17c3651c90441fb0fa0d07 /libraries/base/GHC/Event | |
parent | c4c892456d29740118ca80cbc565ef4750885e13 (diff) | |
download | haskell-8b9083655f34120b47fe407123272e0687e0bd60.tar.gz |
Move (=<<) to GHC.Base
This allows GHC.Stack to avoid importing Control.Monad, and
is preparatory work for implementing #9586
Reviewed By: austin
Differential Revision: https://phabricator.haskell.org/D221
Diffstat (limited to 'libraries/base/GHC/Event')
-rw-r--r-- | libraries/base/GHC/Event/Manager.hs | 2 | ||||
-rw-r--r-- | libraries/base/GHC/Event/Poll.hsc | 2 | ||||
-rw-r--r-- | libraries/base/GHC/Event/TimerManager.hs | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/libraries/base/GHC/Event/Manager.hs b/libraries/base/GHC/Event/Manager.hs index 9f12ecd9dc..b6c028a9e1 100644 --- a/libraries/base/GHC/Event/Manager.hs +++ b/libraries/base/GHC/Event/Manager.hs @@ -52,7 +52,7 @@ module GHC.Event.Manager import Control.Concurrent.MVar (MVar, newMVar, readMVar, putMVar, tryPutMVar, takeMVar, withMVar) import Control.Exception (onException) -import Control.Monad ((=<<), forM_, when, replicateM, void) +import Control.Monad (forM_, when, replicateM, void) import Data.Bits ((.&.)) import Data.IORef (IORef, atomicModifyIORef', mkWeakIORef, newIORef, readIORef, writeIORef) diff --git a/libraries/base/GHC/Event/Poll.hsc b/libraries/base/GHC/Event/Poll.hsc index fd05a13799..686bc711da 100644 --- a/libraries/base/GHC/Event/Poll.hsc +++ b/libraries/base/GHC/Event/Poll.hsc @@ -26,7 +26,7 @@ available = False #include <poll.h> import Control.Concurrent.MVar (MVar, newMVar, swapMVar) -import Control.Monad ((=<<), unless) +import Control.Monad (unless) import Data.Bits (Bits, FiniteBits, (.|.), (.&.)) import Data.Word import Foreign.C.Types (CInt(..), CShort(..)) diff --git a/libraries/base/GHC/Event/TimerManager.hs b/libraries/base/GHC/Event/TimerManager.hs index 435693a927..e55dddf82a 100644 --- a/libraries/base/GHC/Event/TimerManager.hs +++ b/libraries/base/GHC/Event/TimerManager.hs @@ -39,7 +39,7 @@ module GHC.Event.TimerManager -- Imports import Control.Exception (finally) -import Control.Monad ((=<<), sequence_, when) +import Control.Monad (sequence_, when) import Data.IORef (IORef, atomicModifyIORef', mkWeakIORef, newIORef, readIORef, writeIORef) import GHC.Base |