-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Standard spec's for binary-related Instances -- -- Standard spec's for cereal-related Instances, see -- https://hackage.haskell.org/package/binary. @package genvalidity-hspec-binary @version 0.0.0.0 -- | Standard test Specs and raw Propertys for Binary -- instances. -- -- You will need TypeApplications to use these. module Test.Validity.Binary -- | Standard test spec for properties of Binary-related functions -- for valid values -- -- Example usage: -- --
-- BinarySpecOnValid @Double --binarySpecOnValid :: forall a. (Show a, Eq a, Typeable a, GenValid a, Binary a) => Spec -- | Standard test spec for properties of Binary-related functions -- for unchecked values -- -- Example usage: -- --
-- binarySpec @Int --binarySpec :: forall a. (Show a, Eq a, Typeable a, GenUnchecked a, Binary a) => Spec -- | Standard test spec for properties of Binary-related functions -- for arbitrary values -- -- Example usage: -- --
-- binarySpecOnArbitrary @Int --binarySpecOnArbitrary :: forall a. (Show a, Eq a, Typeable a, Arbitrary a, Binary a) => Spec -- | Standard test spec for properties of Binary-related functions -- for a given generator (and a name for that generator). -- -- Example usage: -- --
-- binarySpecOnGen (genListOf $ pure 'a') "sequence of 'a's" --binarySpecOnGen :: forall a. (Show a, Eq a, Typeable a, Binary a) => Gen a -> String -> Spec -- |
-- neverFailsToEncodeOnGen @Bool arbitrary ---- --
-- neverFailsToEncodeOnGen @Bool genUnchecked ---- --
-- neverFailsToEncodeOnGen @Bool genValid ---- --
-- neverFailsToEncodeOnGen @Int arbitrary ---- --
-- neverFailsToEncodeOnGen @Int genUnchecked ---- --
-- neverFailsToEncodeOnGen @Int genValid --neverFailsToEncodeOnGen :: (Show a, Binary a) => Gen a -> Property -- |
-- encodeAndDecodeAreInversesOnGen @Bool arbitrary ---- --
-- encodeAndDecodeAreInversesOnGen @Bool genUnchecked ---- --
-- encodeAndDecodeAreInversesOnGen @Bool genValid ---- --
-- encodeAndDecodeAreInversesOnGen @Int arbitrary ---- --
-- encodeAndDecodeAreInversesOnGen @Int genUnchecked ---- --
-- encodeAndDecodeAreInversesOnGen @Int genValid --encodeAndDecodeAreInversesOnGen :: (Show a, Eq a, Binary a) => Gen a -> Property