Re: [GHC] #7473: getModificationTime gives only second-level resolution

2013-01-02 Thread GHC
#7473: getModificationTime gives only second-level resolution
--+-
  Reporter:  duncan   |  Owner:  
  Type:  bug  | Status:  new 
  Priority:  normal   |  Milestone:  7.8.1   
 Component:  libraries/directory  |Version:  7.6.1   
Resolution:   |   Keywords:  
Os:  Unknown/Multiple |   Architecture:  Unknown/Multiple
   Failure:  None/Unknown | Difficulty:  Unknown 
  Testcase:   |  Blockedby:  
  Blocking:   |Related:  
--+-
Changes (by igloo):

  * status:  patch => new
  * milestone:  => 7.8.1


Comment:

 Applied, thanks. I'll leave the ticket open for the Windows half.

-- 
Ticket URL: 
GHC 
The Glasgow Haskell Compiler

___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


Re: [GHC] #7473: getModificationTime gives only second-level resolution

2012-12-05 Thread GHC
#7473: getModificationTime gives only second-level resolution
+---
Reporter:  duncan   |   Owner:  
Type:  bug  |  Status:  patch   
Priority:  normal   |   Milestone:  
   Component:  libraries/directory  | Version:  7.6.1   
Keywords:   |  Os:  Unknown/Multiple
Architecture:  Unknown/Multiple | Failure:  None/Unknown
  Difficulty:  Unknown  |Testcase:  
   Blockedby:   |Blocking:  
 Related:   |  
+---
Changes (by igloo):

  * difficulty:  => Unknown


Comment:

 Related: #6160

-- 
Ticket URL: 
GHC 
The Glasgow Haskell Compiler

___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


Re: [GHC] #7473: getModificationTime gives only second-level resolution

2012-12-03 Thread GHC
#7473: getModificationTime gives only second-level resolution
-+--
Reporter:  duncan|  Owner: 
Type:  bug   | Status:  patch  
Priority:  normal|  Component:  libraries/directory
 Version:  7.6.1 |   Keywords: 
  Os:  Unknown/Multiple  |   Architecture:  Unknown/Multiple   
 Failure:  None/Unknown  |  Blockedby: 
Blocking:|Related: 
-+--

Comment(by duncan):

 On the issue of Win32, Malcolm notes:
 {{{
 Open Shake implements the finer resolution timestamps needed using the
 Win32 API.  You may want to copy/adapt the code from there:
 }}}
 http://hackage.haskell.org/packages/archive/shake/0.3.7/doc/html/src
 /Development-Shake-FileTime.html#line-69

-- 
Ticket URL: 
GHC 
The Glasgow Haskell Compiler

___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


Re: [GHC] #7473: getModificationTime gives only second-level resolution

2012-12-03 Thread Malcolm Wallace
Replying by email, since my account on the trac is blocked.

Open Shake implements the finer resolution timestamps needed using the Win32 
API.  You may want to copy/adapt the code from there:

http://hackage.haskell.org/packages/archive/shake/0.3.7/doc/html/src/Development-Shake-FileTime.html#line-69

Regards,
Malcolm

On 3 Dec 2012, at 13:01, GHC wrote:

> #7473: getModificationTime gives only second-level resolution
> -+--
> The `System.Directory.getModificationTime` function only returns time with
> second-level granularity. This is no good for applications like `ghc
> --make` where we need to compare file timestamps.
> 
> The fix should be simple, here's a patch (compiles but not tested) that
> should fix it for Unix, for Windows we will need a different fix, probably
> using the Win32 API directly, rather than the mingw C api.

___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


Re: [GHC] #7473: getModificationTime gives only second-level resolution

2012-12-03 Thread GHC
#7473: getModificationTime gives only second-level resolution
-+--
Reporter:  duncan|  Owner: 
Type:  bug   | Status:  patch  
Priority:  normal|  Component:  libraries/directory
 Version:  7.6.1 |   Keywords: 
  Os:  Unknown/Multiple  |   Architecture:  Unknown/Multiple   
 Failure:  None/Unknown  |  Blockedby: 
Blocking:|Related: 
-+--
Changes (by duncan):

  * status:  new => patch


-- 
Ticket URL: 
GHC 
The Glasgow Haskell Compiler

___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs