@@ -29,7 +29,7 @@ import SpecCommon
2929import Test.Hspec
3030
3131import qualified Data.HashMap.Strict as HM
32−import Data.Time
32+import Data.Time.LocalTime
3333
3434checkToSchema :: ToSchema a => Proxy a -> Value -> Spec
3535checkToSchema proxy js = toSchema proxy <=> js
@@ -115,7 +115,7 @@ spec = do
115115 context "MyRoseTree' (inlineNonRecursiveSchemas)" $ checkInlinedRecSchema (Proxy :: Proxy MyRoseTree') myRoseTreeSchemaJSON'
116116 describe "Bounded Enum key mapping" $ do
117117 context "ButtonImages" $ checkToSchema (Proxy :: Proxy ButtonImages) buttonImagesSchemaJSON
118− context "TimeOfDay" $ checkToSchema (Proxy :: Proxy TimeOfDay ) (Object (HM.fromList [("example",String "12:33:15"),("format",String "hh:MM:ss"),("type",String "string")]))
118+ context "TimeOfDay" $ checkToSchema (Proxy :: Proxy Data.Time.LocalTime.TimeOfDay ) timeOfDaySchemaJSON
119119
120120main :: IO ()
121121main = hspec spec