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.
asumOf :: Alternative f => Getting (Endo (f a)) s (f a) -> s -> f alens Control.Lens.Fold The sum of a collection of actions, generalizing concatOf.
>>> asumOf both ("hello","world") "helloworld">>> asumOf each (Nothing, Just "hello", Nothing) Just "hello"
asum ≡ asumOf folded
asumOf :: Alternative f => Getter s (f a) -> s -> f a asumOf :: Alternative f => Fold s (f a) -> s -> f a asumOf :: Alternative f => Lens' s (f a) -> s -> f a asumOf :: Alternative f => Iso' s (f a) -> s -> f a asumOf :: Alternative f => Traversal' s (f a) -> s -> f a asumOf :: Alternative f => Prism' s (f a) -> s -> f a
msumOf :: MonadPlus m => Getting (Endo (m a)) s (m a) -> s -> m alens Control.Lens.Fold The sum of a collection of actions, generalizing concatOf.
>>> msumOf both ("hello","world") "helloworld">>> msumOf each (Nothing, Just "hello", Nothing) Just "hello"
msum ≡ msumOf folded
msumOf :: MonadPlus m => Getter s (m a) -> s -> m a msumOf :: MonadPlus m => Fold s (m a) -> s -> m a msumOf :: MonadPlus m => Lens' s (m a) -> s -> m a msumOf :: MonadPlus m => Iso' s (m a) -> s -> m a msumOf :: MonadPlus m => Traversal' s (m a) -> s -> m a msumOf :: MonadPlus m => Prism' s (m a) -> s -> m a
prismSum :: APrism s t a b -> APrism s t c d -> Prism s t (Either a c) (Either b d)lens Control.Lens.Unsound A dual of lensProduct: a prism sum. The law
preview l (review l b) ≡ Just b
breaks with>>> let badPrism :: Prism' (Maybe Char) (Either Char Char); badPrism = prismSum _Just _Just >>> preview badPrism (review badPrism (Right 'x')) Just (Left 'x')
We put in Right value, but get back Left. Are you looking for without?_UnboxedSumE :: Prism' Exp (Exp, SumAlt, SumArity)lens Language.Haskell.TH.Lens No documentation available.
_UnboxedSumP :: Prism' Pat (Pat, SumAlt, SumArity)lens Language.Haskell.TH.Lens No documentation available.
_UnboxedSumT :: Prism' Type SumAritylens Language.Haskell.TH.Lens No documentation available.
_Sum :: Iso' Natural (Either Natural Natural)lens Numeric.Natural.Lens The natural numbers are isomorphic to disjoint sums of natural numbers embedded as evens or odds.
N = 2*N
-
parsec Text.Parsec No documentation available.
-
parsec Text.Parsec No documentation available.
-
parsec Text.Parsec.Prim No documentation available.