Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Arbitrary
instances intended for serialisation roundtrip tests for
CardanoBlock
and its related types.
Because the generated values are only used in serialisation roundtrip tests, they don't need to be valid blocks, transactions, etc.
We combine the Byron and Shelley-based instances defined elsewhere into Cardano instances by picking randomly from one of the eras.