sop-extras-0.2.1.0: Type-level and data utilities that build upon SOP.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Data.SOP.Functors

Documentation

newtype Flip f x y Source #

Constructors

Flip 

Fields

Instances

Instances details
Generic (Flip f x2 y2) Source # 
Instance details

Defined in Data.SOP.Functors

Associated Types

type Rep (Flip f x2 y2) ∷ TypeType #

Methods

fromFlip f x2 y2 → Rep (Flip f x2 y2) x #

toRep (Flip f x2 y2) x → Flip f x2 y2 #

Show (f y2 x2) ⇒ Show (Flip f x2 y2) Source # 
Instance details

Defined in Data.SOP.Functors

Methods

showsPrecIntFlip f x2 y2 → ShowS #

showFlip f x2 y2 → String #

showList ∷ [Flip f x2 y2] → ShowS #

Eq (f y2 x2) ⇒ Eq (Flip f x2 y2) Source # 
Instance details

Defined in Data.SOP.Functors

Methods

(==)Flip f x2 y2 → Flip f x2 y2 → Bool #

(/=)Flip f x2 y2 → Flip f x2 y2 → Bool #

NoThunks (f y2 x2) ⇒ NoThunks (Flip f x2 y2) Source # 
Instance details

Defined in Data.SOP.Functors

Methods

noThunksContextFlip f x2 y2 → IO (Maybe ThunkInfo) Source #

wNoThunksContextFlip f x2 y2 → IO (Maybe ThunkInfo) Source #

showTypeOfProxy (Flip f x2 y2) → String Source #

type Rep (Flip f x2 y2) Source # 
Instance details

Defined in Data.SOP.Functors

type Rep (Flip f x2 y2) = D1 ('MetaData "Flip" "Data.SOP.Functors" "sop-extras-0.2.1.0-inplace" 'True) (C1 ('MetaCons "Flip" 'PrefixI 'True) (S1 ('MetaSel ('Just "unFlip") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (f y2 x2))))

newtype K2 a b c Source #

Constructors

K2 a 

data Product2 f g x y Source #

Constructors

Pair2 (f x y) (g x y) 

Instances

Instances details
Generic (Product2 f g x y) Source # 
Instance details

Defined in Data.SOP.Functors

Associated Types

type Rep (Product2 f g x y) ∷ TypeType #

Methods

fromProduct2 f g x y → Rep (Product2 f g x y) x0 #

toRep (Product2 f g x y) x0 → Product2 f g x y #

(Show (f x y), Show (g x y)) ⇒ Show (Product2 f g x y) Source # 
Instance details

Defined in Data.SOP.Functors

Methods

showsPrecIntProduct2 f g x y → ShowS #

showProduct2 f g x y → String #

showList ∷ [Product2 f g x y] → ShowS #

(Eq (f x y), Eq (g x y)) ⇒ Eq (Product2 f g x y) Source # 
Instance details

Defined in Data.SOP.Functors

Methods

(==)Product2 f g x y → Product2 f g x y → Bool #

(/=)Product2 f g x y → Product2 f g x y → Bool #

type Rep (Product2 f g x y) Source # 
Instance details

Defined in Data.SOP.Functors

type Rep (Product2 f g x y) = D1 ('MetaData "Product2" "Data.SOP.Functors" "sop-extras-0.2.1.0-inplace" 'False) (C1 ('MetaCons "Pair2" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (f x y)) :*: S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (g x y))))

snd2Product2 f g x y → g x y Source #