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