Add Bounded instance for IntSet
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 = fromList []
maxBound = fromList [maxBound]
Suggested deadline: December 16, 2007.
Trac metadata
Trac field | Value |
---|---|
Version | 6.8.1 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | libraries (other) |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | Multiple |
Architecture | Multiple |