Skip to content
Newer
Older
100644 42 lines (33 sloc) 857 Bytes
555183b SafeHaskell: Added SafeHaskell to base
David Terei authored May 16, 2011
1 {-# LANGUAGE Trustworthy #-}
41e8fba Use explicit language extensions & remove extension fields from base.…
simonpj@microsoft.com authored Jan 28, 2011
2
ccf0491 @RossPaterson make some Applicative functions into methods, and split off Data.Func…
RossPaterson authored Sep 15, 2009
3 -----------------------------------------------------------------------------
4 -- |
5 -- Module : Data.Functor
6 -- Copyright : (c) The University of Glasgow 2001
7 -- License : BSD-style (see the file libraries/base/LICENSE)
8 --
9 -- Maintainer : libraries@haskell.org
10 -- Stability : provisional
11 -- Portability : portable
12 --
13 -- Functors: uniform action over a parameterized type, generalizing the
14 -- 'map' function on lists.
15
16 module Data.Functor
17 (
b242f02 Make Data.Functor compatible with non-GHC compilers.
Malcolm.Wallace@cs.york.ac.uk authored Oct 9, 2009
18 Functor(fmap),
19 (<$),
6402f8d @igfoo Add some more Data.Functor functions; fixes #7817
igfoo authored Apr 21, 2013
20 ($>),
ccf0491 @RossPaterson make some Applicative functions into methods, and split off Data.Func…
RossPaterson authored Sep 15, 2009
21 (<$>),
6402f8d @igfoo Add some more Data.Functor functions; fixes #7817
igfoo authored Apr 21, 2013
22 void,
ccf0491 @RossPaterson make some Applicative functions into methods, and split off Data.Func…
RossPaterson authored Sep 15, 2009
23 ) where
24
6402f8d @igfoo Add some more Data.Functor functions; fixes #7817
igfoo authored Apr 21, 2013
25 import Control.Monad
ccf0491 @RossPaterson make some Applicative functions into methods, and split off Data.Func…
RossPaterson authored Sep 15, 2009
26 import GHC.Base (Functor(..))
27
28 infixl 4 <$>
29
30 -- | An infix synonym for 'fmap'.
31 (<$>) :: Functor f => (a -> b) -> f a -> f b
32 (<$>) = fmap
3dffd56 Update base for latest Safe Haskell.
David Terei authored Oct 25, 2011
33
6402f8d @igfoo Add some more Data.Functor functions; fixes #7817
igfoo authored Apr 21, 2013
34 infixl 4 $>
35
599130f @hvr Fix typo in documentation of Data.Functor.($>)
hvr authored Feb 16, 2014
36 -- | Flipped version of '<$'.
6368362 @hvr Add Haddock `/Since: 4.7.0.0/` comments to new symbols
hvr authored Sep 21, 2013
37 --
38 -- /Since: 4.7.0.0/
6402f8d @igfoo Add some more Data.Functor functions; fixes #7817
igfoo authored Apr 21, 2013
39 ($>) :: Functor f => f a -> b -> f b
40 ($>) = flip (<$)
41
Something went wrong with that request. Please try again.