Skip to content

Commit daae61d

Browse files
spicydonutspaf31
authored andcommitted
Fix guard example (#45)
1 parent 139584a commit daae61d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"test": "pulp test"
77
},
88
"devDependencies": {
9-
"pulp": "^10.0.4",
9+
"pulp": "^12.0.1",
1010
"purescript-psa": "^0.5.0-rc.1",
1111
"rimraf": "^2.6.1"
1212
}

src/Control/MonadZero.purs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ instance monadZeroArray :: MonadZero Array
4747
-- | factors :: Int -> Array Int
4848
-- | factors n = do
4949
-- | a <- 1..n
50-
-- | b <- a..n
50+
-- | b <- 1..n
5151
-- | guard $ a * b == n
52-
-- | pure [a, b]
52+
-- | pure a
5353
-- | ```
5454
guard :: forall m. MonadZero m => Boolean -> m Unit
5555
guard true = pure unit

0 commit comments

Comments
 (0)