Hoogle Search
Within LTS Haskell 24.32 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
class
ToProduct tuple (f :: u -> Type) (as :: [u]) | f as -> tupleworld-peace Data.WorldPeace This type class provides a way to turn a tuple into a Product.
tupleToOpenProduct :: forall t (as :: [Type]) . ToOpenProduct t as => t -> OpenProduct asworld-peace Data.WorldPeace Turn a tuple into an OpenProduct.
Examples
Turn a triple into an OpenProduct:>>> tupleToOpenProduct (1, 2.0, "hello") :: OpenProduct '[Int, Double, String] Cons (Identity 1) (Cons (Identity 2.0) (Cons (Identity "hello") Nil))
Turn a single value into an OpenProduct:>>> tupleToOpenProduct 'c' :: OpenProduct '[Char] Cons (Identity 'c') Nil
type
OpenProduct = Product Identityworld-peace Data.WorldPeace.Product class
ToOpenProduct tuple (as :: [Type]) | as -> tupleworld-peace Data.WorldPeace.Product ToOpenProduct gives us a way to convert a tuple to an OpenProduct. See tupleToOpenProduct.
class
ToProduct tuple (f :: u -> Type) (as :: [u]) | f as -> tupleworld-peace Data.WorldPeace.Product This type class provides a way to turn a tuple into a Product.
toOpenProduct :: ToOpenProduct tuple as => tuple -> OpenProduct asworld-peace Data.WorldPeace.Product No documentation available.
toProduct :: ToProduct tuple f as => tuple -> Product f asworld-peace Data.WorldPeace.Product Convert a tuple into a Product. See tupleToProduct for examples.
tupleToOpenProduct :: forall t (as :: [Type]) . ToOpenProduct t as => t -> OpenProduct asworld-peace Data.WorldPeace.Product Turn a tuple into an OpenProduct.
Examples
Turn a triple into an OpenProduct:>>> tupleToOpenProduct (1, 2.0, "hello") :: OpenProduct '[Int, Double, String] Cons (Identity 1) (Cons (Identity 2.0) (Cons (Identity "hello") Nil))
Turn a single value into an OpenProduct:>>> tupleToOpenProduct 'c' :: OpenProduct '[Char] Cons (Identity 'c') Nil
ConsolidateProduct :: ConsolidateFunctionxlsx Codec.Xlsx.Types.PivotTable The product of the values.
cartesianProductWith :: Ord c => (a -> b -> c) -> Set a -> Set b -> Set calgebraic-graphs Algebra.Graph.Internal Compute the Cartesian product of two sets, applying a function to each resulting pair.