
22 Jul
2010
22 Jul
'10
6:43 p.m.
On Thu, 22 Jul 2010, Chad Scherrer wrote:
I thought it might help to put it into a module and do a better job with the type, like this:
bdRangeSize :: (Ix i, Bounded i) => i -> Int bdRangeSize _ = rangeSize (minBound, maxBound :: i)
Henning Thielemann
bdRangeSize x = rangeSize (minBound, maxBound `asTypeOf` x)
Perfect, thank you! Chad