summaryrefslogtreecommitdiff
path: root/src/Control/Concurrent/Lifted/Instrument.hs
diff options
context:
space:
mode:
authorjoe <joe@jerkface.net>2017-07-28 07:59:22 -0400
committerjoe <joe@jerkface.net>2017-07-28 08:00:54 -0400
commitaab3495857146187622bb0034c4e025b8e7ab6d4 (patch)
tree4a9088a6fdcdf2540c22e6bee6b89a67f12dbdfb /src/Control/Concurrent/Lifted/Instrument.hs
parentf4353c5bf3e328dcb40010d95d3733273a3fb6ea (diff)
Removed LANGUAGE Strict from Concurrent instrumentation.
Diffstat (limited to 'src/Control/Concurrent/Lifted/Instrument.hs')
-rw-r--r--src/Control/Concurrent/Lifted/Instrument.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Control/Concurrent/Lifted/Instrument.hs b/src/Control/Concurrent/Lifted/Instrument.hs
index 29bac871..957b67bb 100644
--- a/src/Control/Concurrent/Lifted/Instrument.hs
+++ b/src/Control/Concurrent/Lifted/Instrument.hs
@@ -1,5 +1,4 @@
1{-# LANGUAGE FlexibleContexts #-} 1{-# LANGUAGE FlexibleContexts #-}
2{-# LANGUAGE Strict #-}
3module Control.Concurrent.Lifted.Instrument 2module Control.Concurrent.Lifted.Instrument
4 ( module Control.Concurrent.Lifted 3 ( module Control.Concurrent.Lifted
5 , forkIO 4 , forkIO
@@ -13,7 +12,6 @@ import qualified Control.Concurrent.Lifted as Raw
13import Control.Concurrent.Lifted hiding (fork) 12import Control.Concurrent.Lifted hiding (fork)
14import Control.Monad.Trans.Control 13import Control.Monad.Trans.Control
15import System.IO.Unsafe 14import System.IO.Unsafe
16import System.Mem.Weak
17import qualified Data.Map.Strict as Map 15import qualified Data.Map.Strict as Map
18import Control.Exception.Lifted 16import Control.Exception.Lifted
19import Control.Monad.Base 17import Control.Monad.Base
@@ -40,6 +38,7 @@ globals = unsafePerformIO $ newMVar $ GlobalState
40 38
41forkIO :: IO () -> IO ThreadId 39forkIO :: IO () -> IO ThreadId
42forkIO = fork 40forkIO = fork
41{-# INLINE forkIO #-}
43 42
44fork :: MonadBaseControl IO m => m () -> m ThreadId 43fork :: MonadBaseControl IO m => m () -> m ThreadId
45fork action = do 44fork action = do
@@ -55,6 +54,7 @@ labelThread :: ThreadId -> String -> IO ()
55labelThread tid s = do 54labelThread tid s = do
56 GHC.labelThread tid s 55 GHC.labelThread tid s
57 modifyThreads $ Map.adjust (\pt -> pt { lbl = s }) tid 56 modifyThreads $ Map.adjust (\pt -> pt { lbl = s }) tid
57{-# INLINE labelThread #-}
58 58
59threadsInformation :: IO [PerThread] 59threadsInformation :: IO [PerThread]
60threadsInformation = do 60threadsInformation = do