We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
guard
1 parent 139584a commit daae61dCopy full SHA for daae61d
package.json
@@ -6,7 +6,7 @@
6
"test": "pulp test"
7
},
8
"devDependencies": {
9
- "pulp": "^10.0.4",
+ "pulp": "^12.0.1",
10
"purescript-psa": "^0.5.0-rc.1",
11
"rimraf": "^2.6.1"
12
}
src/Control/MonadZero.purs
@@ -47,9 +47,9 @@ instance monadZeroArray :: MonadZero Array
47
-- | factors :: Int -> Array Int
48
-- | factors n = do
49
-- | a <- 1..n
50
--- | b <- a..n
+-- | b <- 1..n
51
-- | guard $ a * b == n
52
--- | pure [a, b]
+-- | pure a
53
-- | ```
54
guard :: forall m. MonadZero m => Boolean -> m Unit
55
guard true = pure unit
0 commit comments