Hoogle Search
Within LTS Haskell 24.26 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
mapCons :: (Listable a, Listable b) => ([(a, b)] -> c) -> [[c]]leancheck Test.LeanCheck.Error Given a constructor that takes a map of elements (encoded as a list), lists tiers of applications of this constructor So long as the underlying Listable enumerations have no repetitions, this will generate no repetitions. This allows defining an efficient implementation of tiers that does not repeat maps given by:
tiers = mapCons fromList
mapT :: (a -> b) -> [[a]] -> [[b]]leancheck Test.LeanCheck.Error map over tiers
mapT f [[x], [y,z], [w,...], ...] = [[f x], [f y, f z], [f w, ...], ...]
mapT f [xs, ys, zs, ...] = [map f xs, map f ys, map f zs]
mapCons :: (Listable a, Listable b) => ([(a, b)] -> c) -> [[c]]leancheck Test.LeanCheck.Tiers Given a constructor that takes a map of elements (encoded as a list), lists tiers of applications of this constructor So long as the underlying Listable enumerations have no repetitions, this will generate no repetitions. This allows defining an efficient implementation of tiers that does not repeat maps given by:
tiers = mapCons fromList
mapMaybeT :: (a -> Maybe b) -> [[a]] -> [[b]]leancheck Test.LeanCheck.Tiers Like mapMaybe but for tiers.
maps :: [[a]] -> [[b]] -> [[[(a, b)]]]leancheck Test.LeanCheck.Tiers Takes as arguments tiers of source and target values; returns tiers of maps from the source to the target encoded as lists without repetition.
-
quickcheck-classes-base Test.QuickCheck.Classes.Base.IsList No documentation available.
-
quickcheck-classes-base Test.QuickCheck.Classes.Base.IsList Property for the mapMaybe function, which keeps elements for which the predicate holds true.
-
quickcheck-classes-base Test.QuickCheck.Classes.Base.IsList No documentation available.
-
singletons Data.Singletons.Sigma Map across a Sigma value in a dependent fashion.
mapSome :: (forall (t :: k) . () => f t -> g t) -> Some f -> Some gsome Data.Some Map over argument.