From a4ee6f86fd8a26a5741509e71cc71f6be460ec6d Mon Sep 17 00:00:00 2001 From: simonmar Date: Wed, 30 Mar 2005 11:15:21 +0000 Subject: [PATCH] [project @ 2005-03-30 11:15:21 by simonmar] Ord instance: use toAscList instead of toList (doc change only; these functiosn are the same). --- Data/Map.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Data/Map.hs b/Data/Map.hs index dd12656..d89ab6a 100644 --- a/Data/Map.hs +++ b/Data/Map.hs @@ -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 -- 1.7.10.4