File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
io-classes/src/Control/Monad/Class Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -203,9 +203,7 @@ newtype Concurrently m a = Concurrently { runConcurrently :: m a }
203
203
instance Functor m => Functor (Concurrently m ) where
204
204
fmap f (Concurrently ma) = Concurrently (fmap f ma)
205
205
206
- instance ( Applicative m
207
- , MonadAsync m
208
- ) => Applicative (Concurrently m ) where
206
+ instance MonadAsync m => Applicative (Concurrently m ) where
209
207
pure = Concurrently . pure
210
208
211
209
Concurrently fn <*> Concurrently as =
@@ -214,8 +212,7 @@ instance ( Applicative m
214
212
`fmap`
215
213
concurrently fn as
216
214
217
- instance ( Alternative m
218
- , MonadAsync m
215
+ instance ( MonadAsync m
219
216
, MonadTimer m
220
217
) => Alternative (Concurrently m ) where
221
218
empty = Concurrently $ forever (threadDelay 86400 )
You can’t perform that action at this time.
0 commit comments