[project @ 2005-03-30 11:15:21 by simonmar]
authorsimonmar <unknown>
Wed, 30 Mar 2005 11:15:21 +0000 (11:15 +0000)
committersimonmar <unknown>
Wed, 30 Mar 2005 11:15:21 +0000 (11:15 +0000)
Ord instance: use toAscList instead of toList (doc change only; these
functiosn are the same).

Data/Map.hs

index dd12656..d89ab6a 100644 (file)
@@ -1294,7 +1294,7 @@ instance (Eq k,Eq a) => Eq (Map k a) where
 --------------------------------------------------------------------}
 
 instance (Ord k, Ord v) => Ord (Map k v) where
-    compare m1 m2 = compare (toList m1) (toList m2)
+    compare m1 m2 = compare (toAscList m1) (toAscList m2)
 
 {--------------------------------------------------------------------
   Functor