Skip to content

Commit

Permalink
Fix build on Windows (haskell/ghcide#423)
Browse files Browse the repository at this point in the history
  • Loading branch information
ndmitchell authored Feb 12, 2020
1 parent 3bc58f7 commit 31b9cfd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ghcide/src/Development/IDE/Core/FileStore.hs
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,8 @@ getModificationTimeRule vfs =
getModTime f =
#ifdef mingw32_HOST_OS
do time <- Dir.getModificationTime f
let !day = toModifiedJulianDay $ utctDay time
!dayTime = diffTimeToPicoseconds $ utctDayTime time
let !day = fromInteger $ toModifiedJulianDay $ utctDay time
!dayTime = fromInteger $ diffTimeToPicoseconds $ utctDayTime time
pure (day, dayTime)
#else
withCString f $ \f' ->
Expand Down

0 comments on commit 31b9cfd

Please sign in to comment.