relude-0.1.1: Custom prelude from Kowainik
Relude.Functor.Fmap
Description
This module contains useful functions to work with Functor type class.
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.
fmap . fmap
>>> negate <<$>> Just [1,2,3] Just [-1,-2,-3]
>>>
negate <<$>> Just [1,2,3]