error vs Maybe in Collections package
jeanphilippe.bernardy at gmail.com
Wed Jun 7 16:44:54 EDT 2006
Good idea. I added a ticket.
If there is no taker I'll try to do it this weekend.
On 6/6/06, Robert Dockins <robdockins at fastmail.fm> wrote:
> On Jun 6, 2006, at 9:57 AM, David F. Place wrote:
> > It bothers me that the functions findMin, findMax, deleteFindMin
> > and deleteFindMax are error when applied to the empty set in
> > various types of collections. Shouldn't they return Maybe?
> FYI, Edison has operations that generalize 'deleteFind*' (named
> viewMin/viewMax) which call 'fail' in an arbitrary monad when applied
> to an empty collection; obviously, these can be instantiated at type
> > --------------------------------
> > David F. Place
> > mailto:d at vidplace.com
> Rob Dockins
> Speak softly and drive a Sherman tank.
> Laugh hard; it's a long way to the bank.
> -- TMBG
> Libraries mailing list
> Libraries at haskell.org
More information about the Libraries