Skip to content

Commit a9e8b5e

Browse files
committed
Make iff explicit
1 parent 04d5ff8 commit a9e8b5e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Data/These.purs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,13 +136,13 @@ theseRight (Both _ x) = Just x
136136
theseRight (That x) = Just x
137137
theseRight _ = Nothing
138138

139-
-- | Returns the `a` value iff the value is constructed with `This`.
139+
-- | Returns the `a` value if and only if the value is constructed with `This`.
140140
this :: forall a b. These a b -> Maybe a
141141
this = case _ of
142142
This x -> Just x
143143
_ -> Nothing
144144

145-
-- | Returns the `b` value iff the value is constructed with `That`.
145+
-- | Returns the `b` value if and only if the value is constructed with `That`.
146146
that :: forall a b. These a b -> Maybe b
147147
that = case _ of
148148
That x -> Just x

0 commit comments

Comments
 (0)