[commit: base] master: Removed Show instance for IOCallback and FdData The IOCallback instance conflicts with the more general instance Show (a -> b) defined in Text.Show.Functions (a524192)
Ian Lynagh
igloo at earth.li
Thu Apr 7 21:36:08 CEST 2011
Repository : ssh://darcs.haskell.org//srv/darcs/packages/base
On branch : master
http://hackage.haskell.org/trac/ghc/changeset/a524192f2d5bf30581162cb59d9c95e88b65f23c
>---------------------------------------------------------------
commit a524192f2d5bf30581162cb59d9c95e88b65f23c
Author: Bas van Dijk <v.dijk.bas at gmail.com>
Date: Mon Apr 4 20:53:24 2011 +0200
Removed Show instance for IOCallback and FdData The IOCallback instance conflicts with the more general instance Show (a -> b) defined in Text.Show.Functions
>---------------------------------------------------------------
GHC/Event/Manager.hs | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
diff --git a/GHC/Event/Manager.hs b/GHC/Event/Manager.hs
index bb7379c..055d0c7 100644
--- a/GHC/Event/Manager.hs
+++ b/GHC/Event/Manager.hs
@@ -90,7 +90,7 @@ data FdData = FdData {
fdKey :: {-# UNPACK #-} !FdKey
, fdEvents :: {-# UNPACK #-} !Event
, _fdCallback :: !IOCallback
- } deriving (Show)
+ }
-- | A file descriptor registration cookie.
data FdKey = FdKey {
@@ -101,9 +101,6 @@ data FdKey = FdKey {
-- | Callback invoked on I/O events.
type IOCallback = FdKey -> Event -> IO ()
-instance Show IOCallback where
- show _ = "IOCallback"
-
-- | A timeout registration cookie.
newtype TimeoutKey = TK Unique
deriving (Eq)
More information about the Cvs-libraries
mailing list