Permalink
Browse files

Fix build as suggested by Ian Lynagh

  • Loading branch information...
1 parent 65fe28f commit 3d391035e39d1b31b204c9d5762e086c74f84a44 @tuncer tuncer committed Oct 3, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 cabal-install/Distribution/Client/SrcDist.hs
@@ -36,7 +36,7 @@ import Distribution.Text
import Distribution.Version
( Version )
-import System.Time (getClockTime, toCalendarTime)
+import Data.Time (getCurrentTime)
import System.FilePath ((</>), (<.>))
import Control.Monad (when, unless)
import Data.Maybe (isNothing)
@@ -60,7 +60,7 @@ sdist flags exflags = do
when (isNothing mb_lbi) $
warn verbosity "Cannot run preprocessors. Run 'configure' command first."
- date <- toCalendarTime =<< getClockTime
+ date <- getCurrentTime
let pkg' | snapshot = snapshotPackage date pkg
| otherwise = pkg

0 comments on commit 3d39103

Please sign in to comment.