Add flipped fmap
Isaac Dupree
ml at isaac.cedarswampstudios.org
Thu Apr 8 18:01:06 EDT 2010
On 04/08/10 16:07, Bas van Dijk wrote:
> ... Especially
> because, for some weird reason, Data.Functor is not know to hoogle.
>
> http://haskell.org/hoogle/?q=Data.Functor
>
> And<$> is reported to be only exported by Control.Applicative
>
> http://haskell.org/hoogle/?hoogle=%3C%24%3E
oh gee, there seems to be some confusion. At least, I was confused.
Well, here's a list from the GHC(i) 6.12.1 prompt about what's in
Data.Functor:
> :browse Data.Functor
(<$>) :: (Functor f) => (a -> b) -> f a -> f b
class Functor f where
fmap :: (a -> b) -> f a -> f b
(<$) :: a -> f b -> f a
More information about the Libraries
mailing list