[Haskell-cafe] Sillyness in the standard libs.

Arthur van Leeuwen arthurvl at cs.uu.nl
Mon Nov 19 16:06:33 EST 2007


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  
read . show or a similar detour through strings.

The problem comes up when trying to easily nicely display the access,  
or status change times of a full directory of files, using  
to get at the times.

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 EpochTime, but not the semantics of quotRem on EpochTime. Having  
	would solve the above puzzle... :)

With kind regards, Arthur.


   /\    / |       arthurvl at cs.uu.nl       | Work like you don't need  
the money
/__\  /  | A friend is someone with whom | Love like you have never  
been hurt
/    \/__ | you can dare to be yourself   | Dance like there's nobody  

More information about the Haskell-Cafe mailing list