
1 Aug
2010
1 Aug
'10
9:52 a.m.
The proposal is to add (<.>) function to Data.Functor/Control.Applicative: (<.>) :: (b -> c) -> (a -> f b) -> a -> f c f <.> g = fmap f . g -- (<.>) = (.) . fmap In intend it is related to <$> in the same way as (.) is related to $: (a . b . c) d = a $ b $ c $ d (a <.> b <.> c) d = a <$> b <$> c <$> d a is not specialized to f a to allow such chaining: const 1 <.> print <=< (read :: String -> Int) <.> readFile :: (Num t) => FilePath -> IO t Discussion deadline: 31th August 2010