Module

Data.These

#These

data These a b

Constructors

Instances

#these

these :: forall a b c. (a -> c) -> (b -> c) -> (a -> b -> c) -> These a b -> c

#thisOrBoth

thisOrBoth :: forall a b. a -> Maybe b -> These a b

#thatOrBoth

thatOrBoth :: forall a b. b -> Maybe a -> These a b

#maybeThese

maybeThese :: forall a b. Maybe a -> Maybe b -> Maybe (These a b)

Takes a pair of Maybes and attempts to create a These from them.

#fromThese

fromThese :: forall a b. a -> b -> These a b -> Tuple a b

#theseLeft

theseLeft :: forall a b. These a b -> Maybe a

Returns an a value if possible.

#theseRight

theseRight :: forall a b. These a b -> Maybe b

Returns a b value if possible.

#this

this :: forall a b. These a b -> Maybe a

Returns the a value if and only if the value is constructed with This.

#that

that :: forall a b. These a b -> Maybe b

Returns the b value if and only if the value is constructed with That.

Modules