mirror of
https://github.com/github/semantic.git
synced 2025-01-03 04:51:57 +03:00
Add an Intersection newtype wrapping These.
This commit is contained in:
parent
cde4b78196
commit
ddb1898b39
@ -42,6 +42,9 @@ apThese fg ab = uncurry maybeThese $ uncurry (***) (bimap (<*>) (<*>) (unpack fg
|
||||
newtype Union a b = Union { getUnion :: Maybe (These a b) }
|
||||
deriving (Eq, Show)
|
||||
|
||||
newtype Intersection a b = Intersection { getIntersection :: Maybe (These a b) }
|
||||
deriving (Eq, Show)
|
||||
|
||||
|
||||
-- Instances
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user