Skip to content

Commit d9c8604

Browse files
committed
Remove redundant Alternative constraint.
1 parent d21faaf commit d9c8604

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
@@ -203,9 +203,7 @@ newtype Concurrently m a = Concurrently { runConcurrently :: m a }
203203
instance Functor m => Functor (Concurrently m) where
204204
fmap f (Concurrently ma) = Concurrently (fmap f ma)
205205

206-
instance ( Applicative m
207-
, MonadAsync m
208-
) => Applicative (Concurrently m) where
206+
instance MonadAsync m => Applicative (Concurrently m) where
209207
pure = Concurrently . pure
210208

211209
Concurrently fn <*> Concurrently as =
@@ -214,8 +212,7 @@ instance ( Applicative m
214212
`fmap`
215213
concurrently fn as
216214

217-
instance ( Alternative m
218-
, MonadAsync m
215+
instance ( MonadAsync m
219216
, MonadTimer m
220217
) => Alternative (Concurrently m) where
221218
empty = Concurrently $ forever (threadDelay 86400)

0 commit comments

Comments
 (0)