universum-1.0.0: Custom prelude used in Serokell

Safe HaskellSafe
LanguageHaskell2010

Universum.Functor.Fmap

Synopsis

Documentation

map :: Functor f => (a -> b) -> f a -> f b Source #

map generalized to Functor.

(<<$>>) :: (Functor f, Functor g) => (a -> b) -> f (g a) -> f (g b) infixl 4 Source #

Alias for fmap . fmap. Convenient to work with two nested Functors.

>>> negate <<$>> Just [1,2,3]
Just [-1,-2,-3]