File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
io-classes/src/Control/Monad/Class Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ module Control.Monad.Class.MonadFork
14
14
15
15
import qualified Control.Concurrent as IO
16
16
import Control.Exception (AsyncException (ThreadKilled ), Exception )
17
- import Control.Monad.Reader
17
+ import Control.Monad.Reader ( ReaderT ( .. ), lift )
18
18
import Data.Kind (Type )
19
19
import qualified GHC.Conc.Sync as IO (labelThread )
20
20
@@ -58,8 +58,8 @@ instance MonadFork IO where
58
58
throwTo = IO. throwTo
59
59
killThread = IO. killThread
60
60
61
- instance MonadThread m => MonadThread (ReaderT e m ) where
62
- type ThreadId (ReaderT e m ) = ThreadId m
61
+ instance MonadThread m => MonadThread (ReaderT r m ) where
62
+ type ThreadId (ReaderT r m ) = ThreadId m
63
63
myThreadId = lift myThreadId
64
64
labelThread t l = lift (labelThread t l)
65
65
You can’t perform that action at this time.
0 commit comments