[Haskell-cafe] Re: Why is Day and Month bounded?
Chris Kuklewicz
haskell at list.mightyreason.com
Fri Jul 14 06:07:41 EDT 2006
Hmmm... I think I should have said:
> toCycle :: Int -> c
> toCycle = toEnum
> . (+ (fromEnum (minBound::c)))
> . (`mod` (cyclePeriod (undefined::c)))
More information about the Haskell-Cafe
mailing list