
20 Sep
2015
20 Sep
'15
6:01 a.m.
That should just be (fmap.fmap).
I don't know if "I find this very useful" is enough for adding a function to base, but here it goes:
infixl 4 <.> (<.>) :: Functor f => (b -> c) -> (a -> f b) -> (a -> f c) f1 <.> f2 = fmap f1 . f2 {-# INLINE (<.>) #-}
I first defined this couple of months ago and I find myself looking for this function all the time now.
One problem with this is that the name is used by widely used `filepath` library. _______________________________________________ Libraries mailing list Libraries@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries
-- Sent with my mu4e