[project @ 2005-12-15 11:17:31 by simonmar]
authorsimonmar <unknown>
Thu, 15 Dec 2005 11:17:31 +0000 (11:17 +0000)
committersimonmar <unknown>
Thu, 15 Dec 2005 11:17:31 +0000 (11:17 +0000)
Add dataCast1/dataCast2 methods to Data class, as per ticket #633.

Data/IntMap.hs
Data/Map.hs
Data/Set.hs

index 4c5246c..d5fc9e7 100644 (file)
@@ -236,6 +236,7 @@ instance Data a => Data (IntMap a) where
   toConstr _    = error "toConstr"
   gunfold _ _   = error "gunfold"
   dataTypeOf _  = mkNorepType "Data.IntMap.IntMap"
+  dataCast1      = gcast1
 
 #endif
 
index da12f9d..96dc045 100644 (file)
@@ -212,6 +212,7 @@ instance (Data k, Data a, Ord k) => Data (Map k a) where
   toConstr _     = error "toConstr"
   gunfold _ _    = error "gunfold"
   dataTypeOf _   = mkNorepType "Data.Map.Map"
+  dataCast2      = gcast2
 
 #endif
 
index fe3b0b4..34cb16a 100644 (file)
@@ -171,6 +171,7 @@ instance (Data a, Ord a) => Data (Set a) where
   toConstr _     = error "toConstr"
   gunfold _ _    = error "gunfold"
   dataTypeOf _   = mkNorepType "Data.Set.Set"
+  dataCast1      = gcast1
 
 #endif