HORIZON HASKELLDocslts/ghc-9.14.xd82dee82026-10-12Search names, modules, packages, or :: a typeCtrl K

GHC 9.14.1 · lts/ghc-9.14.x · d82dee8 · 2026-10-12

Moduleantigen-0.4.0.0Haskell2010

Test.AntiGen.Internal

  • 2 types
  • 13 values
  • Packageantigen-0.4.0.0
  • Exports15
  • LanguageHaskell2010
  • LicenceMIT
  • SourceInternal.hs
newtypenewtype AntiGen a
#
Instances5Monad, Functor, Applicative, MonadGen, MonadFree
value(|!) :: Gen a -> Gen a -> AntiGen a
#

Create a negatable generator by providing a positive and a negative generator

value(#!) :: AntiGen a -> Text -> AntiGen a
#

Postfix annotation operator. Annotates an AntiGen with a label that will be included in ZapResult when this generator is zapped.

myGen = positive |! negative #! "sign"
valuezapAntiGen :: Int -> AntiGen a -> Gen a
#

Create a negative generator from an AntiGen by introducing at most n mistakes. If there are no negatable generators in the AntiGen, it will return a positive generator. Also if the number of negatable generators in the AntiGen is lower than n, then the number of negations will be less than n.