[commit: packages/time] format-widths, master, tasty: benchmark: fix (04c34a6)

git at git.haskell.org git at git.haskell.org
Mon Feb 20 21:20:06 UTC 2017


Repository : ssh://git@git.haskell.org/time

On branches: format-widths,master,tasty
Link       : http://git.haskell.org/packages/time.git/commitdiff/04c34a6880937b7abbb17d54d05bce236d5da5f1

>---------------------------------------------------------------

commit 04c34a6880937b7abbb17d54d05bce236d5da5f1
Author: Ashley Yakeley <ashley at yakeley.org>
Date:   Sun Jan 15 16:14:11 2017 -0800

    benchmark: fix


>---------------------------------------------------------------

04c34a6880937b7abbb17d54d05bce236d5da5f1
 benchmark/Main.hs          | 2 +-
 benchmark/time-bench.cabal | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/benchmark/Main.hs b/benchmark/Main.hs
index dbee637..854144a 100644
--- a/benchmark/Main.hs
+++ b/benchmark/Main.hs
@@ -12,7 +12,7 @@ main :: IO ()
 main = do
     getCurrentTime >>= print
     O.getCurrentTime >>= print
-    getPOSIXTime >>= print . posixToUTCTime
+    getPOSIXTime >>= print . posixSecondsToUTCTime
     O.getPOSIXTime >>= print . O.posixSecondsToUTCTime
     getZonedTime >>= print
     O.getZonedTime >>= print
diff --git a/benchmark/time-bench.cabal b/benchmark/time-bench.cabal
index 9026ffe..4cc6559 100644
--- a/benchmark/time-bench.cabal
+++ b/benchmark/time-bench.cabal
@@ -11,7 +11,7 @@ executable time-bench
     hs-source-dirs: ../lib, .
     main-is: Main.hs
     other-modules:
-        Data.Time.Clock.CTimespec
+        Data.Time.Clock.Internal.CTimespec
     default-language: Haskell2010
     if impl(ghc)
         default-extensions:



More information about the ghc-commits mailing list