| Portability | portable |
|---|---|
| Stability | provisional |
| Maintainer | Edward Kmett <ekmett@gmail.com> |
| Safe Haskell | None |
Data.Bifunctor.Apply
Contents
Description
- class Bifunctor p => Biapply p where
- (<<$>>) :: (a -> b) -> a -> b
- (<<..>>) :: Biapply p => p a c -> p (a -> b) (c -> d) -> p b d
- bilift2 :: Biapply w => (a -> b -> c) -> (d -> e -> f) -> w a d -> w b e -> w c f
- bilift3 :: Biapply w => (a -> b -> c -> d) -> (e -> f -> g -> h) -> w a e -> w b f -> w c g -> w d h
- module Data.Bifunctor
Biappliable bifunctors
class Bifunctor p => Biapply p whereSource
Instances
| Biapply (,) | |
| Biapply Const | |
| (Bifunctor ((,,) x), Semigroup x) => Biapply ((,,) x) | |
| Biapply (Tagged *) | |
| (Bifunctor (Clown f), Apply f) => Biapply (Clown f) | |
| (Bifunctor (Flip p), Biapply p) => Biapply (Flip p) | |
| (Bifunctor (Joker g), Apply g) => Biapply (Joker g) | |
| (Bifunctor (WrappedBifunctor p), Biapply p) => Biapply (WrappedBifunctor p) | |
| (Bifunctor ((,,,) x y), Semigroup x, Semigroup y) => Biapply ((,,,) x y) | |
| (Bifunctor ((,,,,) x y z), Semigroup x, Semigroup y, Semigroup z) => Biapply ((,,,,) x y z) |
bilift2 :: Biapply w => (a -> b -> c) -> (d -> e -> f) -> w a d -> w b e -> w c fSource
Lift binary functions
bilift3 :: Biapply w => (a -> b -> c -> d) -> (e -> f -> g -> h) -> w a e -> w b f -> w c g -> w d hSource
Lift ternary functions
module Data.Bifunctor