Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix build as suggested by Ian Lynagh

  • Loading branch information...
commit 3d391035e39d1b31b204c9d5762e086c74f84a44 1 parent 65fe28f
@tuncer tuncer authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 cabal-install/Distribution/Client/SrcDist.hs
View
4 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
Please sign in to comment.
Something went wrong with that request. Please try again.