[commit: packages/base] master: Revert "Add fmapCoerce to Functor class." (6fe359b)
git at git.haskell.org
git at git.haskell.org
Thu Sep 26 06:48:22 CEST 2013
Repository : ssh://git@git.haskell.org/base
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/6fe359b32230a121bcffdcb0a7ca6f1ba71631e9/base
>---------------------------------------------------------------
commit 6fe359b32230a121bcffdcb0a7ca6f1ba71631e9
Author: Austin Seipp <austin at well-typed.com>
Date: Wed Sep 25 23:37:45 2013 -0500
Revert "Add fmapCoerce to Functor class."
This reverts commit 3da4fd92e005cb9348ab2852d9268ad61ae1b347.
Signed-off-by: Austin Seipp <austin at well-typed.com>
>---------------------------------------------------------------
6fe359b32230a121bcffdcb0a7ca6f1ba71631e9
GHC/Base.lhs | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/GHC/Base.lhs b/GHC/Base.lhs
index 55172af..d876202 100644
--- a/GHC/Base.lhs
+++ b/GHC/Base.lhs
@@ -105,6 +105,7 @@ module GHC.Base
module GHC.Err -- import it explicitly
)
where
+
import GHC.Types
import GHC.Classes
import GHC.CString
@@ -185,9 +186,6 @@ class Functor f where
(<$) :: a -> f b -> f a
(<$) = fmap . const
- fmapCoerce :: Coercible a b => f a -> f b
- fmapCoerce = fmap coerce
-
{- | The 'Monad' class defines the basic operations over a /monad/,
a concept from a branch of mathematics known as /category theory/.
From the perspective of a Haskell programmer, however, it is best to
More information about the ghc-commits
mailing list