Proposal: Bounded instance for IntSet (ticket #1953)

David Benbennick dbenbenn at
Sun Dec 2 18:45:40 EST 2007

>From :

I propose to add a Bounded instance to IntSet.hs.

IntSet is in Ord, and there are only finitely many instances of
IntSet. Therefore there is a min IntSet and a max IntSet. It turns out
these bounds are very simple:

instance Bounded IntSet where
    minBound = empty
    maxBound = singleton maxBound

Suggested deadline: December 16, 2007.

More information about the Libraries mailing list