Standard test spec for properties of JSON-related functions for valid values
Example usage:
jsonSpec @Int:: a typeCtrl KGHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05
Modulegenvalidity-sydtest-aeson-1.0.0.0Haskell2010
Standard test Specs and raw Propertys for FromJSON and ToJSON instances.
You will need TypeApplications to use these.
Standard test spec for properties of JSON-related functions for valid values
Example usage:
jsonSpec @IntStandard test spec for properties of JSON-related functions for arbitrary values
Example usage:
jsonSpecOnArbitrary @IntStandard test spec for properties of JSON-related functions for a given generator (and a name for that generator).
Example usage:
jsonSpecOnGen (genListOf $ pure 'a') "sequence of 'a's"neverFailsToEncodeOnGen @Bool arbitrary shrinkneverFailsToEncodeOnGen @Bool genValid shrinkValidneverFailsToEncodeOnGen @Bool genValid shrinkValidneverFailsToEncodeOnGen @Int arbitrary shrinkneverFailsToEncodeOnGen @Int genValid shrinkValidneverFailsToEncodeOnGen @Int genValid shrinkValidencodeAndDecodeAreInversesOnGen @Bool arbitrary shrinkencodeAndDecodeAreInversesOnGen @Bool genValid shrinkValidencodeAndDecodeAreInversesOnGen @Bool genValid shrinkValidencodeAndDecodeAreInversesOnGen @Int arbitrary shrinkencodeAndDecodeAreInversesOnGen @Int genValid shrinkValidencodeAndDecodeAreInversesOnGen @Int genValid shrinkValid