removed (->) instance from Data.Data
authorjpm@cs.uu.nl <unknown>
Mon, 6 Oct 2008 07:52:54 +0000 (07:52 +0000)
committerjpm@cs.uu.nl <unknown>
Mon, 6 Oct 2008 07:52:54 +0000 (07:52 +0000)
Data/Data.hs

index f2d4ec3..c812843 100644 (file)
@@ -1132,20 +1132,6 @@ instance (Data a, Data b) => Data (Either a b) where
 
 ------------------------------------------------------------------------------
 
-
---
--- A last resort for functions
---
-
-instance (Data a, Data b) => Data (a -> b) where
-  toConstr _   = error "toConstr"
-  gunfold _ _  = error "gunfold"
-  dataTypeOf _ = mkNorepType "Prelude.(->)"
-  dataCast2 f  = gcast2 f
-
-
-------------------------------------------------------------------------------
-
 tuple0Constr :: Constr
 tuple0Constr = mkConstr tuple0DataType "()" [] Prefix