Hoogle Search
Within LTS Haskell 24.25 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
arbitraryBSn :: Int -> Gen ByteStringhaskoin-core Haskoin.Util.Arbitrary.Util Arbitrary strict ByteString of a given length
arbitraryMaybe :: Gen a -> Gen (Maybe a)haskoin-core Haskoin.Util.Arbitrary.Util Generate a Maybe from a Gen a
arbitraryNetwork :: Gen Networkhaskoin-core Haskoin.Util.Arbitrary.Util Generate an Network
arbitraryUTCTime :: Gen UTCTimehaskoin-core Haskoin.Util.Arbitrary.Util Arbitrary UTCTime that generates dates after 01 Jan 1970 01:00:00 CET
arbitraryQ :: Arbitrary a => Quantification aquickcheck-dynamic Test.QuickCheck.DynamicLogic.Quantify Pack up an Arbitrary instance as a Quantification. Treats all values as being in range.
arbitraryAction :: StateModel state => VarContext -> state -> Gen (Any (Action state))quickcheck-dynamic Test.QuickCheck.StateModel Generator for Action depending on state.
arbitraryVar :: Typeable a => VarContext -> Gen (Var a)quickcheck-dynamic Test.QuickCheck.StateModel.Variables No documentation available.
arbitrarySteppable :: (Steppable (->) t f, Functor f) => (Gen t -> Gen (f t)) -> Gen tyaya-quickcheck Yaya.QuickCheck.Fold No documentation available.
-
QuickCheck Test.QuickCheck Used for random generation of functions. You should consider using Fun instead, which can show the generated functions as strings. If you are using a recent GHC, there is a default definition of coarbitrary using genericCoarbitrary, so if your type has a Generic instance it's enough to say
instance CoArbitrary MyType
You should only use genericCoarbitrary for data types where equality is structural, i.e. if you can't have two different representations of the same value. An example where it's not safe is sets implemented using binary search trees: the same set can be represented as several different trees. Here you would have to explicitly define coarbitrary s = coarbitrary (toList s). applyArbitrary2 :: (Arbitrary a, Arbitrary b) => (a -> b -> r) -> Gen rQuickCheck Test.QuickCheck Apply a binary function to random arguments.