Copyright | (C) 2011 Edward Kmett, |
---|---|
License | BSD-style (see the file LICENSE) |
Maintainer | Edward Kmett <ekmett@gmail.com> |
Stability | provisional |
Portability | portable |
Safe Haskell | Safe-Inferred |
Language | Haskell98 |
- 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 where Source
(<<.>>) :: p (a -> b) (c -> d) -> p a c -> p b d infixl 4 Source
Biapply (,) | |
Biapply Const | |
Semigroup x => Biapply ((,,) x) | |
Biapply (Tagged *) | |
Apply f => Biapply (Clown f) | |
Biapply p => Biapply (Flip p) | |
Apply g => Biapply (Joker g) | |
Biapply p => Biapply (WrappedBifunctor p) | |
(Semigroup x, Semigroup y) => Biapply ((,,,) x y) | |
(Apply f, Biapply p) => Biapply (Tannen f p) | |
(Semigroup x, Semigroup y, Semigroup z) => Biapply ((,,,,) x y z) | |
(Biapply p, Apply f, Apply g) => Biapply (Biff p f g) |
bilift2 :: Biapply w => (a -> b -> c) -> (d -> e -> f) -> w a d -> w b e -> w c f Source
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 h Source
Lift ternary functions
module Data.Bifunctor