Hoogle Search
Within LTS Haskell 24.3 (ghc-9.10.2)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
-
ghc-internal GHC.Internal.Data.Monoid Boolean monoid under conjunction (&&).
All x <> All y = All (x && y)
Examples
>>> All True <> mempty <> All False) All {getAll = False}
>>> mconcat (map (\x -> All (even x)) [2,4,6,7,8]) All {getAll = False}
>>> All True <> mempty All {getAll = True}
-
ghc-internal GHC.Internal.Data.Monoid No documentation available.
-
ghc-internal GHC.Internal.Data.Semigroup.Internal Boolean monoid under conjunction (&&).
All x <> All y = All (x && y)
Examples
>>> All True <> mempty <> All False) All {getAll = False}
>>> mconcat (map (\x -> All (even x)) [2,4,6,7,8]) All {getAll = False}
>>> All True <> mempty All {getAll = True}
-
ghc-internal GHC.Internal.Data.Semigroup.Internal No documentation available.
-
numhask NumHask.Prelude Boolean monoid under conjunction (&&).
All x <> All y = All (x && y)
Examples
>>> All True <> mempty <> All False) All {getAll = False}
>>> mconcat (map (\x -> All (even x)) [2,4,6,7,8]) All {getAll = False}
>>> All True <> mempty All {getAll = True}
-
numhask NumHask.Prelude No documentation available.
-
This module provides All, a GADT that encodes universal quantification/parametricity over a type variable. The following is an example of a situation in which it might be necessary to use All (though it is a bit contrived):
{-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE GADTs #-} data F (x :: Bool) where FTrue :: F 'True FFalse :: F 'False FIndeterminate :: F b data Value = VAllF (All F) class Valuable a where valuation :: a -> Value instance Valuable (All F) where valuation = VAllF val1 :: Value val1 = valuation (All FIndeterminate)
For a less contrived but more complex example, see this blog post: http://comonad.com/reader/2008/rotten-bananas/ -
parameterized-utils Data.Parameterized.All No documentation available.
All :: (forall (x :: k) . () => f x) -> All (f :: k -> Type)parameterized-utils Data.Parameterized.All No documentation available.
-
lens-family-core Lens.Family Boolean monoid under conjunction (&&).
All x <> All y = All (x && y)
Examples
>>> All True <> mempty <> All False) All {getAll = False}
>>> mconcat (map (\x -> All (even x)) [2,4,6,7,8]) All {getAll = False}
>>> All True <> mempty All {getAll = True}