bifunctors-4.1.1.1: Bifunctors

Portabilityportable
Stabilityprovisional
MaintainerEdward Kmett <ekmett@gmail.com>
Safe HaskellSafe-Inferred

Data.Biapplicative

Contents

Description

 

Synopsis

Biapplicative bifunctors

class Bifunctor p => Biapplicative p whereSource

Methods

bipure :: a -> b -> p a bSource

(<<*>>) :: p (a -> b) (c -> d) -> p a c -> p b dSource

(*>>) :: p a b -> p c d -> p c dSource

 a *> b ≡ const id <$> a <*> b

(<<*) :: p a b -> p c d -> p a bSource

 a <* b ≡ const <$> a <.> b

(<<$>>) :: (a -> b) -> a -> bSource

(<<**>>) :: Biapplicative p => p a c -> p (a -> b) (c -> d) -> p b dSource

biliftA2 :: Biapplicative w => (a -> b -> c) -> (d -> e -> f) -> w a d -> w b e -> w c fSource

Lift binary functions

biliftA3 :: Biapplicative w => (a -> b -> c -> d) -> (e -> f -> g -> h) -> w a e -> w b f -> w c g -> w d hSource

Lift ternary functions