Re: [Haskell-cafe] Re: Sillyness in the standard libs.

2007-11-29 Thread Evan Laforge
> Let's ignore System.Time since it's obsoleted by Data.Time. While you're updating the Data.Time docs, could you mention the above in System.Time? I recently looked at both and used System.Time because Data.Time looked too complicated. ___ Haskell-Cafe

Re: [Haskell-cafe] Re: Sillyness in the standard libs.

2007-11-29 Thread Brandon S. Allbery KF8NH
On Nov 29, 2007, at 12:12 , Arthur van Leeuwen wrote: Going through Rational is the right solution, though. My hackish detour was to use fromIntegral . toInteger . fromEnum ?? fromEnum produces an Int, which is an Integral such as fromIntegral requires; why is toInteger needed? Yes, that

Re: [Haskell-cafe] Re: Sillyness in the standard libs.

2007-11-29 Thread Arthur van Leeuwen
On 29-nov-2007, at 14:44, Simon Marlow wrote: Brandon S. Allbery KF8NH wrote: On Nov 19, 2007, at 16:06 , Arthur van Leeuwen wrote: here is a puzzle for you: try converting a System.Posix.Types.EpochTime into either a System.Time.CalendarTime or a Data.Time.Clock.UTCTime without going thro

[Haskell-cafe] Re: Sillyness in the standard libs.

2007-11-29 Thread Simon Marlow
Brandon S. Allbery KF8NH wrote: On Nov 19, 2007, at 16:06 , Arthur van Leeuwen wrote: here is a puzzle for you: try converting a System.Posix.Types.EpochTime into either a System.Time.CalendarTime or a Data.Time.Clock.UTCTime without going through read . show or a similar detour through stri

Re: [Haskell-cafe] Re: Sillyness in the standard libs.

2007-11-20 Thread Andrew Coppin
Aaron Denney wrote: On 2007-11-19, Andrew Coppin <[EMAIL PROTECTED]> wrote: As I understand it, it's widely recognised that Haskell's current numeric class hierachy is broken (or at best, not very well chosen), but nobody came up with a better suggestion yet. Oh, there are /lots/ of s

[Haskell-cafe] Re: Sillyness in the standard libs.

2007-11-19 Thread Aaron Denney
On 2007-11-19, Andrew Coppin <[EMAIL PROTECTED]> wrote: > Arthur van Leeuwen wrote: >> A closely related issue: fromIntegral is in Integral which also >> requires quotRem. However, >> the two are semantically quite disjoint. I can *easily* see the >> semantics of fromIntegral >> on EpochT