3 -----------------------------------------------------------------------------
5 -- Module : Data.Functor
6 -- Copyright : (c) The University of Glasgow 2001
7 -- License : BSD-style (see the file libraries/base/LICENSE)
9 -- Maintainer : libraries@haskell.org
10 -- Stability : provisional
11 -- Portability : portable
13 -- Functors: uniform action over a parameterized type, generalizing the
14 -- 'map' function on lists.
23 #ifdef __GLASGOW_HASKELL__
24 import GHC.Base (Functor(..))
26 (<$) :: Functor f => a -> f b -> f a
32 -- | An infix synonym for 'fmap'.
33 (<$>) :: Functor f => (a -> b) -> f a -> f b