@@ -42,6 +42,8 @@ tests = testGroup "Katip"
4242 [
4343 testProperty "JSON cycle Item" $ \(i :: Item ()) ->
4444 prop_json_cycle i
45+ , testProperty "JSON cycle verbosity" $ \(v :: Verbosity) ->
46+ prop_json_cycle v
4547 , eqItemTests
4648 , testProperty "renderSeverity/textToSeverity cycle" $ \sev ->
4749 textToSeverity(renderSeverity sev) === Just sev
@@ -259,6 +261,10 @@ instance Arbitrary Loc where
259261 return $ Loc f p m s s
260262
261263
264+-------------------------------------------------------------------------------
265+instance Arbitrary Verbosity where
266+ arbitrary = oneof $ map pure [V0, V1, V2, V3]
267+
262268-------------------------------------------------------------------------------
263269instance Arbitrary Severity where
264270 arbitrary = oneof $ map pure [ DebugS