#1953: Add Bounded instance for IntSet
----------------------------------+-----------------------------------------
Reporter: dbenbenn | Owner:
Type: proposal | Status: new
Priority: normal | Milestone:
Component: libraries (other) | Version: 6.8.1
Severity: normal | Keywords:
Difficulty: Easy (1 hr) | Testcase:
Architecture: Multiple | Os: Multiple
----------------------------------+-----------------------------------------
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.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1953>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs