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 @@ -210,9 +210,7 @@ newtype Concurrently m a = Concurrently { runConcurrently :: m a }
210
210
instance Functor m => Functor (Concurrently m ) where
211
211
fmap f (Concurrently ma) = Concurrently (fmap f ma)
212
212
213
- instance ( Applicative m
214
- , MonadAsync m
215
- ) => Applicative (Concurrently m ) where
213
+ instance MonadAsync m => Applicative (Concurrently m ) where
216
214
pure = Concurrently . pure
217
215
218
216
Concurrently fn <*> Concurrently as =
@@ -221,8 +219,7 @@ instance ( Applicative m
221
219
`fmap`
222
220
concurrently fn as
223
221
224
- instance ( Alternative m
225
- , MonadAsync m
222
+ instance ( MonadAsync m
226
223
, MonadTimer m
227
224
) => Alternative (Concurrently m ) where
228
225
empty = Concurrently $ forever (threadDelay 86400 )
You can’t perform that action at this time.
0 commit comments