packages feed

time-hourglass 0.2.13 → 0.2.14

raw patch · 4 files changed

+10/−5 lines, 4 filesdep +time-hourglassdep −hourglass

Dependencies added: time-hourglass

Dependencies removed: hourglass

Files

CHANGELOG.md view
@@ -6,6 +6,11 @@ and this project adheres to the
 [Haskell Package Versioning Policy](https://pvp.haskell.org/).
 
+## 0.2.14
+
+* In test-suite and benchmark, depend on main library, drop dependency on
+  package `hourglass`.
+
 ## 0.2.13
 
 * Drop support for GHC < 8.4.
benchmarks/Bench.hs view
@@ -12,8 +12,8 @@ import qualified Data.Time.Calendar as T
 import qualified Data.Time.Clock as T
 import qualified Data.Time.Clock.POSIX as T
-import           System.Hourglass ( timeCurrent, timeCurrentP )
 import           Test.Tasty.Bench ( bench, bgroup, defaultMain, nf, nfIO )
+import           Time.System ( timeCurrent, timeCurrentP )
 
 timeToTuple :: T.UTCTime -> (Int, Int, Int, Int, Int, Int)
 timeToTuple utcTime = (fromIntegral y, m, d, h, mi, sec)
tests/Tests.hs view
@@ -20,7 +20,6 @@                    , localTimeSetTimezone, localTimeToGlobal, timeConvert
                    , timeGetDateTimeOfDay, timeGetElapsed, timeParseE, timePrint
                    )
-import           Data.Hourglass.Epoch ( ElapsedSince, WindowsEpoch )
 import           Data.Int ( Int64 )
 import           Data.Ratio ( (%) )
 import qualified Data.Time.Calendar as T
@@ -32,6 +31,7 @@                    ( Assertion, (@=?), assertEqual, assertFailure, testCase )
 import           Test.Tasty.QuickCheck
                    ( Arbitrary (..), choose, elements, testProperty )
+import           Time.Epoch ( ElapsedSince, WindowsEpoch )
 import           TimeDB ( parseTimeConv )
 import           TimeRange ( dateRange, hiElapsed, loElapsed )
 
time-hourglass.cabal view
@@ -5,7 +5,7 @@ -- see: https://github.com/sol/hpack
 
 name:           time-hourglass
-version:        0.2.13
+version:        0.2.14
 synopsis:       A simple and efficient time library
 description:    A simple and efficient time library.
                 .
@@ -85,11 +85,11 @@   build-depends:
       base >=4.11 && <5
     , deepseq
-    , hourglass
     , tasty
     , tasty-hunit
     , tasty-quickcheck
     , time
+    , time-hourglass
   default-language: Haskell2010
   if os(windows)
     other-modules:
@@ -111,7 +111,7 @@   build-depends:
       base >=4.11 && <5
     , deepseq
-    , hourglass
     , tasty-bench
     , time
+    , time-hourglass
   default-language: Haskell2010