Skip to content

Commit aa938ee

Browse files
committed
Use hashable-time-0.2.1: more tests
1 parent 8a0f0b8 commit aa938ee

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

aeson.cabal

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,7 @@ test-suite aeson-tests
214214
generic-deriving >= 1.10 && < 1.15,
215215
ghc-prim >= 0.2,
216216
hashable >= 1.2.4.0,
217+
hashable-time >= 0.2.1 && <0.3,
217218
scientific,
218219
strict,
219220
tagged,
@@ -247,8 +248,6 @@ test-suite aeson-tests
247248
build-depends: nats >=1 && <1.2,
248249
void >=0.7.2 && <0.8
249250

250-
if impl(ghc >= 7.8)
251-
build-depends: hashable-time >= 0.2.0.1 && <0.3
252251

253252
if flag(fast)
254253
ghc-options: -fno-enable-rewrite-rules

tests/PropertyKeys.hs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,10 @@ keysTests =
3535
, testProperty "Float" $ roundTripKey (undefined :: Float)
3636
, testProperty "Double" $ roundTripKey (undefined :: Double)
3737
, testProperty "Day" $ roundTripKey (undefined :: Day)
38-
-- TODO: needs https://github.com/w3rs/hashable-time/pull/12
39-
-- , testProperty "DayOfWeek" $ roundTripKey (undefined :: DayOfWeek)
40-
-- , testProperty "Month" $ roundTripKey (undefined :: Month)
41-
-- , testProperty "Quarter" $ roundTripKey (undefined :: Quarter)
42-
-- , testProperty "QuarterOfYear" $ roundTripKey (undefined :: QuarterOfYear)
38+
, testProperty "DayOfWeek" $ roundTripKey (undefined :: DayOfWeek)
39+
, testProperty "Month" $ roundTripKey (undefined :: Month)
40+
, testProperty "Quarter" $ roundTripKey (undefined :: Quarter)
41+
, testProperty "QuarterOfYear" $ roundTripKey (undefined :: QuarterOfYear)
4342
, testProperty "LocalTime" $ roundTripKey (undefined :: LocalTime)
4443
, testProperty "TimeOfDay" $ roundTripKey (undefined :: TimeOfDay)
4544
, testProperty "UTCTime" $ roundTripKey (undefined :: UTCTime)

0 commit comments

Comments
 (0)