extensible-sp-0.1.0.0: light-weight, extensible sums and products over types and kinds
Data.Extensible.Sum2
data (f :+: g) a b Source #
Constructors
Instances
Methods
peek2 :: (c :+: b) a b -> Maybe (a a b) Source #
lft2 :: a a b -> (c :+: b) a b Source #
peek2 :: (f :+: g) a b -> Maybe (g a b) Source #
lft2 :: g a b -> (f :+: g) a b Source #
class Sum2 c s where Source #
Minimal complete definition
peek2, lft2
peek2 :: c a b -> Maybe (s a b) Source #
lft2 :: s a b -> c a b Source #
peek2 :: f a b -> Maybe (f a b) Source #
lft2 :: f a b -> f a b Source #
type (:>+:) w a = Sum2 w a Source #