HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

Modulegenvalidity-sydtest-1.0.0.0Haskell2010

Test.Syd.Validity.Ord

Ord properties

You will need TypeApplications to use these.

  • 3 values
valueordSpecOnGen
  1. :: (Show a, Ord a, Typeable a)
  2. => Gen a
  3. -> String
  4. -> a -> [a]
  5. -> Spec
#

Standard test spec for properties of Ord instances for values generated by a given generator (and name for that generator).

Example usage:

ordSpecOnGen ((* 2) <$> genValid @Int) "even"