Data.Set.findMin is a partial function

Taral taralx at
Mon Dec 11 10:12:05 EST 2006

On 12/11/06, Henning Thielemann <lemming at> wrote:
> Opinions?

Well, you can do this in your code, no? It seems kind of silly to wrap
it up in a Maybe when the resulting code will case on it. Calling code
frequently has:

if Set.null set then
 ... (Set.findMin set) ...

Taral <taralx at>
"You can't prove anything."
    -- Gödel's Incompetence Theorem

More information about the Libraries mailing list