Hoogle Search
Within LTS Haskell 24.6 (ghc-9.10.2)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
type family
AllN (h :: k -> Type -> l -> Type) (c :: k -> Constraint) :: l -> Constraintsop-core Data.SOP.Constraint A generalization of All and All2. The family AllN expands to All or All2 depending on whether the argument is indexed by a list or a list of lists.
-
sop-core Data.SOP.Constraint Require a constraint pointwise for every pair of elements from two lists. Example: The constraint
AllZip (~) '[ Int, Bool, Char ] '[ a, b, c ]
is equivalent to the constraint(Int ~ a, Bool ~ b, Char ~ c)
-
sop-core Data.SOP.Constraint Require a constraint pointwise for every pair of elements from two lists of lists.
type family
AllZipF (c :: a -> b -> Constraint) (xs :: [a]) (ys :: [b])sop-core Data.SOP.Constraint Type family used to implement AllZip.
-
sop-core Data.SOP.Constraint A generalization of AllZip and AllZip2. The family AllZipN expands to AllZip or AllZip2 depending on whther the argument is indexed by a list or a list of lists.
type
All2 (c :: k -> Constraint) = All All cgenerics-sop Generics.SOP Require a constraint for every element of a list of lists. If you have a datatype that is indexed over a type-level list of lists, then you can use All2 to indicate that all elements of the inner lists must satisfy a given constraint. Example: The constraint
All2 Eq '[ '[ Int ], '[ Bool, Char ] ]
is equivalent to the constraint(Eq Int, Eq Bool, Eq Char)
Example: A type signature such asf :: All2 Eq xss => SOP I xs -> ...
means that f can assume that all elements of the sum of product satisfy Eq. Since 0.4.0.0, this is merely a synonym for 'All (All c)'.type family
AllN (h :: k -> Type -> l -> Type) (c :: k -> Constraint) :: l -> Constraintgenerics-sop Generics.SOP A generalization of All and All2. The family AllN expands to All or All2 depending on whether the argument is indexed by a list or a list of lists.
-
generics-sop Generics.SOP Require a constraint pointwise for every pair of elements from two lists. Example: The constraint
AllZip (~) '[ Int, Bool, Char ] '[ a, b, c ]
is equivalent to the constraint(Int ~ a, Bool ~ b, Char ~ c)
-
generics-sop Generics.SOP Require a constraint pointwise for every pair of elements from two lists of lists.
-
generics-sop Generics.SOP A generalization of AllZip and AllZip2. The family AllZipN expands to AllZip or AllZip2 depending on whther the argument is indexed by a list or a list of lists.