Skip to content

Commit

Permalink
Fix guard example (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
spicydonuts authored and paf31 committed Sep 21, 2017
1 parent 139584a commit daae61d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"test": "pulp test"
},
"devDependencies": {
"pulp": "^10.0.4",
"pulp": "^12.0.1",
"purescript-psa": "^0.5.0-rc.1",
"rimraf": "^2.6.1"
}
Expand Down
4 changes: 2 additions & 2 deletions src/Control/MonadZero.purs
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ instance monadZeroArray :: MonadZero Array
-- | factors :: Int -> Array Int
-- | factors n = do
-- | a <- 1..n
-- | b <- a..n
-- | b <- 1..n
-- | guard $ a * b == n
-- | pure [a, b]
-- | pure a
-- | ```
guard :: forall m. MonadZero m => Boolean -> m Unit
guard true = pure unit
Expand Down

0 comments on commit daae61d

Please sign in to comment.