On Fri, 14 Jul 2006, Johan Holmquist wrote: > I'll answer my own post to elaborate: > > If Day (and Month) where NOT instances of Bounded, the following would > be possible: > > [Monday .. Sunday] > => should return [Monday, Tuesday ... Saturday, Sunday] > => but returns []
Why not [Monday, Tuesday ... Saturday, Sunday, Monday, Tuesday ... Saturday, Sunday] ? Since the days are cycling, what is more natural about your result compared to my one? I assume the Bounded instance exists in order to allow loops like liftM2 (,) [0..] [minBound .. (maxBound::System.Time.Month)] _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe