Changes between Version 1 and Version 2 of Ticket #1134


Ignore:
Timestamp:
Feb 6, 2007 1:34:55 PM (7 years ago)
Author:
jpbernardy
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #1134 – Description

    v1 v2  
     1Some time ago (before ghc 6.6 / base 2.0 release), I introduced minView and maxView in Data.Set and Data.Map (at a user's request). I agreed with Robert Dockins to implement the same functionality as in his version of the Edison library. Unfortunately, I uselessly swapped the return values of minView and maxView, introducing a difference both with the corresponding functions in the edison library and similar functions in Data.Map/Set. 
     2 
     3I propose to restore the symmetry, at the cost of incompatibility. 
     4 
     5 
    16New proposed types:  
    27 
     
    1015 
    1116minView,maxView :: Monad m => Map k a -> m (a, Map k a) 
     17 
     18The incompatibility is probably acceptable because the functions are still short-lived. 
     19 
     20relevant urls: 
     21http://www.eecs.tufts.edu/~rdocki01/docs/edison/Data-Edison-Coll.html#v%3AminView 
     22http://www.eecs.tufts.edu/~rdocki01/docs/edison/Data-Edison-Assoc.html#v%3AminView 
     23http://hackage.haskell.org/darcsweb/darcsweb.cgi?r=base;a=commit;h=20060616180121-9c550-c9530b7eab87ea834f826a7d5c531a5bbed22306.gz