-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | (.:) and friends, syntax for Functor and Applicative. -- -- Alternative syntax for Functor and Applicative. Includes -- Caleskell idioms like (.) = fmap, and also extensions like (.:) -- = fmap . fmap and (&) = (*). @package functors @version 0.1 module Data.Functor.Syntax -- | Generalised version of . that is equivalent to fmap, but -- with the fixity of standard .. -- --
--   infixr 9 .
--   
(.) :: Functor f => (a -> b) -> f a -> f b -- | Alias for fmap. unary :: Functor f => (a -> b) -> f a -> f b -- | Nested fmap for Functors inside Functors (two levels). -- --
--   infixr 9 .:
--   
(.:) :: (Functor f, Functor g) => (a -> b) -> f (g a) -> f (g b) -- | Alias for .:. binary :: (Functor f, Functor g) => (a -> b) -> f (g a) -> f (g b) -- | Nested fmap for Functors inside Functors inside Functors -- (three levels). -- --
--   infixr 9 .::
--   
(.::) :: (Functor f, Functor g, Functor h) => (a -> b) -> f (g (h a)) -> f (g (h b)) -- | Alias for .::. trinary :: (Functor f, Functor g, Functor h) => (a -> b) -> f (g (h a)) -> f (g (h b)) -- | Generalised version of flip. flip :: Functor f => f (a -> b) -> a -> f b -- | Alternative syntax for <*> that fits better with the -- one-letter . from this module. -- --
--   infixl 4 &
--   
(&) :: Applicative f => f (a -> b) -> f a -> f b