Proposal: new version of getModificationTime

Hello all, Function getModificationTime in System.Directory returns ClockTime. ClockTime is part of the old-time package. The (new) time package has UTCTime, so i propose a new version of getModificationTime that returns UTCTime instead. I am not sure what a good name for the new version would be, perhaps getModificationUTCTime? Regards, Felix

One issue about my proposal is that directory and old-time are part of the boot packages and time is not. But if the time package is really set to replace old-time eventually, then it seems logical to make time a boot library as well. Should i create a proposal on trac for that? Regards, Felix

On Fri, Jan 11, 2008 at 03:29:25PM +0100, Felix Martini wrote:
One issue about my proposal is that directory and old-time are part of the boot packages and time is not. But if the time package is really set to replace old-time eventually, then it seems logical to make time a boot library as well. Should i create a proposal on trac for that?
No, I think we should just keep it in mind while considering this proposal. If time is needed for booting ghc, then it will be made a bootlib. Thanks Ian

On Thu, Jan 10, 2008 at 11:56:37PM +0100, Felix Martini wrote:
Hello all,
Function getModificationTime in System.Directory returns ClockTime. ClockTime is part of the old-time package. The (new) time package has UTCTime, so i propose a new version of getModificationTime that returns UTCTime instead. I am not sure what a good name for the new version would be, perhaps getModificationUTCTime?
If we do add it with this name, then I think we should also add getModificationClockTime and mark getModificationTime as deprecated. Then we can change the type of getModificationTime at a later date. (by the way, note that Directory.getModificationTime is in Haskell 98) Thanks Ian
participants (2)
-
Felix Martini
-
Ian Lynagh