[commit: ghc-prim] ghc-generics1: Revert "Move Functor from base to ghc-prim" (9530c56)
José Pedro Magalhães
jpm at cs.uu.nl
Tue Jun 5 23:34:30 CEST 2012
Repository : ssh://darcs.haskell.org//srv/darcs/packages/ghc-prim
On branch : ghc-generics1
http://hackage.haskell.org/trac/ghc/changeset/9530c569ec66878e39728636b6c35727f4ff3594
>---------------------------------------------------------------
commit 9530c569ec66878e39728636b6c35727f4ff3594
Author: Jose Pedro Magalhaes <jpm at cs.ox.ac.uk>
Date: Tue Jun 5 18:51:37 2012 +0100
Revert "Move Functor from base to ghc-prim"
This reverts commit d7a70b01ff0cfaefba264813fd651bc37dcfe67e.
>---------------------------------------------------------------
GHC/Classes.hs | 10 ----------
1 files changed, 0 insertions(+), 10 deletions(-)
diff --git a/GHC/Classes.hs b/GHC/Classes.hs
index 0408ecf..7be590b 100644
--- a/GHC/Classes.hs
+++ b/GHC/Classes.hs
@@ -30,21 +30,11 @@ import GHC.Generics (Arity(..), Associativity(..), Fixity(..))
infix 4 ==, /=, <, <=, >=, >
-infixl 4 <$
infixr 3 &&
infixr 2 ||
default () -- Double isn't available yet
-class Functor f where
- fmap :: (a -> b) -> f a -> f b
-
- -- | Replace all locations in the input with the same value.
- -- The default definition is @'fmap' . 'const'@, but this may be
- -- overridden with a more efficient version.
- (<$) :: a -> f b -> f a
- a <$ f = fmap (\_ -> a) f
-
-- | The 'Eq' class defines equality ('==') and inequality ('/=').
-- All the basic datatypes exported by the "Prelude" are instances of 'Eq',
-- and 'Eq' may be derived for any datatype whose constituents are also
More information about the Cvs-libraries
mailing list