We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e79804 commit ff76698Copy full SHA for ff76698
libs/types-common/src/Data/Id.hs
@@ -440,7 +440,9 @@ newtype RequestId = RequestId
440
Generic,
441
ToBytes
442
)
443
- deriving newtype (Arbitrary)
+
444
+instance Arbitrary RequestId where
445
+ arbitrary = RequestId . UUID.toASCIIBytes <$> arbitrary @UUID
446
447
defRequestId :: (IsString s) => s
448
defRequestId = "N/A"
libs/wire-api/test/unit/Test/Wire/API/Roundtrip/Aeson.hs
@@ -367,7 +367,7 @@ testRoundTrip ::
367
T.TestTree
368
testRoundTrip = testProperty msg trip
369
where
370
- msg = show (typeRep @a)
+ msg = show (typeRep @a) <> " JSON roundtrip"
371
trip (v :: a) =
372
counterexample (show $ toJSON v) $
373
Right v === (parseEither parseJSON . toJSON) v
0 commit comments