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.
2 parents 6d41182 + cd0e77c commit 3d4380cCopy full SHA for 3d4380c
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