Copyright | (C) 2011-2015 Edward Kmett |
---|---|
License | BSD-style (see the file LICENSE) |
Maintainer | Edward Kmett <ekmett@gmail.com> |
Stability | provisional |
Portability | portable |
Safe Haskell | Safe |
Language | Haskell98 |
- class Bifunctor p => Biapplicative p where
- (<<$>>) :: (a -> b) -> a -> b
- (<<**>>) :: Biapplicative p => p a c -> p (a -> b) (c -> d) -> p b d
- biliftA2 :: Biapplicative w => (a -> b -> c) -> (d -> e -> f) -> w a d -> w b e -> w c f
- biliftA3 :: Biapplicative w => (a -> b -> c -> d) -> (e -> f -> g -> h) -> w a e -> w b f -> w c g -> w d h
- module Data.Bifunctor
Biapplicative bifunctors
class Bifunctor p => Biapplicative p where #
(<<*>>) :: p (a -> b) (c -> d) -> p a c -> p b d infixl 4 #
Biapplicative (,) # | |
Biapplicative Arg # | |
Monoid x => Biapplicative ((,,) x) # | |
Biapplicative (Const *) # | |
Biapplicative (Tagged *) # | |
(Monoid x, Monoid y) => Biapplicative ((,,,) x y) # | |
(Monoid x, Monoid y, Monoid z) => Biapplicative ((,,,,) x y z) # | |
Applicative f => Biapplicative (Clown * * f) # | |
Biapplicative p => Biapplicative (Flip * * p) # | |
Applicative g => Biapplicative (Joker * * g) # | |
Biapplicative p => Biapplicative (WrappedBifunctor * * p) # | |
(Monoid x, Monoid y, Monoid z, Monoid w) => Biapplicative ((,,,,,) x y z w) # | |
(Biapplicative f, Biapplicative g) => Biapplicative (Product * * f g) # | |
(Monoid x, Monoid y, Monoid z, Monoid w, Monoid v) => Biapplicative ((,,,,,,) x y z w v) # | |
(Applicative f, Biapplicative p) => Biapplicative (Tannen * * * f p) # | |
(Biapplicative p, Applicative f, Applicative g) => Biapplicative (Biff * * * * p f g) # | |
(<<**>>) :: Biapplicative p => p a c -> p (a -> b) (c -> d) -> p b d infixl 4 #
biliftA2 :: Biapplicative w => (a -> b -> c) -> (d -> e -> f) -> w a d -> w b e -> w c f #
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 h #
Lift ternary functions
module Data.Bifunctor