Skip to content

Commit 37cdccf

Browse files
authored
Merge pull request #66 from JordanMartinez/addMonadZeroInstance
Add Array's MonadZero instance again with a compiler warning
2 parents 0f5848b + eefe1d0 commit 37cdccf

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"private": true,
33
"scripts": {
44
"clean": "rimraf output && rimraf .pulp-cache",
5-
"build": "pulp build -- --censor-lib --strict",
5+
"build": "pulp build -- --censor-lib --strict --censor-codes='UserDefinedWarning'",
66
"test": "pulp test"
77
},
88
"devDependencies": {

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 :: MonadZero Array

0 commit comments

Comments
 (0)