Skip to content

Commit 293c7c6

Browse files
Add Array's MonadZero instance again with a compiler warning
1 parent 0f5848b commit 293c7c6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Control/MonadZero.purs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,5 @@ import Prim.TypeError (class Warn, Text)
4040
-- |
4141
-- | - Annihilation: `empty >>= f = empty`
4242
class (Monad m, Alternative m, Warn (Text "'MonadZero' is deprecated, use 'Monad' and 'Alternative' constraints instead")) <= MonadZero m
43+
44+
instance monadZeroArray :: Warn (Text "`Array`'s 'MonadZero' is deprecated, use 'Monad' and 'Alternative' constraints instead")) => MonadZero Array

0 commit comments

Comments
 (0)