Skip to content

Commit 50d81eb

Browse files
Merge #3497
3497: Multinode Diffusion Simulation r=bolt12 a=bolt12 Co-authored-by: Armando Santos <[email protected]>
2 parents 9f7ac27 + d9c8604 commit 50d81eb

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

io-classes/src/Control/Monad/Class/MonadAsync.hs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -210,9 +210,7 @@ newtype Concurrently m a = Concurrently { runConcurrently :: m a }
210210
instance Functor m => Functor (Concurrently m) where
211211
fmap f (Concurrently ma) = Concurrently (fmap f ma)
212212

213-
instance ( Applicative m
214-
, MonadAsync m
215-
) => Applicative (Concurrently m) where
213+
instance MonadAsync m => Applicative (Concurrently m) where
216214
pure = Concurrently . pure
217215

218216
Concurrently fn <*> Concurrently as =
@@ -221,8 +219,7 @@ instance ( Applicative m
221219
`fmap`
222220
concurrently fn as
223221

224-
instance ( Alternative m
225-
, MonadAsync m
222+
instance ( MonadAsync m
226223
, MonadTimer m
227224
) => Alternative (Concurrently m) where
228225
empty = Concurrently $ forever (threadDelay 86400)

0 commit comments

Comments
 (0)