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.
1 parent 6d41182 commit cd0e77cCopy full SHA for cd0e77c
src/Control/Applicative.purs
@@ -53,12 +53,12 @@ instance applicativeArray :: Applicative Array where
53
liftA1 :: forall f a b. Applicative f => (a -> b) -> f a -> f b
54
liftA1 f a = pure f <*> a
55
56
--- | Perform a applicative action when a condition is true.
+-- | Perform an applicative action when a condition is true.
57
when :: forall m. Applicative m => Boolean -> m Unit -> m Unit
58
when true m = m
59
when false _ = pure unit
60
61
--- | Perform a applicative action unless a condition is true.
+-- | Perform an applicative action unless a condition is true.
62
unless :: forall m. Applicative m => Boolean -> m Unit -> m Unit
63
unless false m = m
64
unless true _ = pure unit
0 commit comments