From: Bas van Dijk Date: Mon, 4 Apr 2011 18:53:24 +0000 (+0200) Subject: Removed Show instance for IOCallback and FdData The IOCallback instance conflicts... X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=a524192f2d5bf30581162cb59d9c95e88b65f23c;p=ghc-base.git Removed Show instance for IOCallback and FdData The IOCallback instance conflicts with the more general instance Show (a -> b) defined in Text.Show.Functions --- 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)