Hoogle Search
Within LTS Haskell 24.4 (ghc-9.10.2)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
type family (a :: Bool)
&& (b :: Bool) :: Boolbase Data.Type.Bool Type-level "and"
-
base GHC.Base Boolean "and", lazy in the second argument
-
ghc-prim GHC.Classes Boolean "and", lazy in the second argument
-
lens Control.Lens.Lens This can be used to chain lens operations using op= syntax rather than op~ syntax for simple non-type-changing cases.
>>> (10,20) & _1 .~ 30 & _2 .~ 40 (30,40)
>>> (10,20) &~ do _1 .= 30; _2 .= 40 (30,40)
This does not support type-changing assignment, e.g.>>> (10,20) & _1 .~ "hello" ("hello",20)
(
&&= ) :: MonadState s m => ASetter' s Bool -> Bool -> m ()lens Control.Lens.Operators Modify the target(s) of a Lens', Iso, Setter or Traversal by taking their logical && with a value.
>>> execState (do _1 &&= True; _2 &&= False; _3 &&= True; _4 &&= False) (True,True,False,False) (True,False,False,False)
(&&=) :: MonadState s m => Setter' s Bool -> Bool -> m () (&&=) :: MonadState s m => Iso' s Bool -> Bool -> m () (&&=) :: MonadState s m => Lens' s Bool -> Bool -> m () (&&=) :: MonadState s m => Traversal' s Bool -> Bool -> m ()
(
&&~ ) :: ASetter s t Bool Bool -> Bool -> s -> tlens Control.Lens.Operators Logically && the target(s) of a Bool-valued Lens or Setter.
>>> both &&~ True $ (False, True) (False,True)
>>> both &&~ False $ (False, True) (False,False)
(&&~) :: Setter' s Bool -> Bool -> s -> s (&&~) :: Iso' s Bool -> Bool -> s -> s (&&~) :: Lens' s Bool -> Bool -> s -> s (&&~) :: Traversal' s Bool -> Bool -> s -> s
-
lens Control.Lens.Operators This can be used to chain lens operations using op= syntax rather than op~ syntax for simple non-type-changing cases.
>>> (10,20) & _1 .~ 30 & _2 .~ 40 (30,40)
>>> (10,20) &~ do _1 .= 30; _2 .= 40 (30,40)
This does not support type-changing assignment, e.g.>>> (10,20) & _1 .~ "hello" ("hello",20)
(
&&= ) :: MonadState s m => ASetter' s Bool -> Bool -> m ()lens Control.Lens.Setter Modify the target(s) of a Lens', Iso, Setter or Traversal by taking their logical && with a value.
>>> execState (do _1 &&= True; _2 &&= False; _3 &&= True; _4 &&= False) (True,True,False,False) (True,False,False,False)
(&&=) :: MonadState s m => Setter' s Bool -> Bool -> m () (&&=) :: MonadState s m => Iso' s Bool -> Bool -> m () (&&=) :: MonadState s m => Lens' s Bool -> Bool -> m () (&&=) :: MonadState s m => Traversal' s Bool -> Bool -> m ()
(
&&~ ) :: ASetter s t Bool Bool -> Bool -> s -> tlens Control.Lens.Setter Logically && the target(s) of a Bool-valued Lens or Setter.
>>> both &&~ True $ (False, True) (False,True)
>>> both &&~ False $ (False, True) (False,False)
(&&~) :: Setter' s Bool -> Bool -> s -> s (&&~) :: Iso' s Bool -> Bool -> s -> s (&&~) :: Lens' s Bool -> Bool -> s -> s (&&~) :: Traversal' s Bool -> Bool -> s -> s
-
hedgehog Hedgehog.Internal.Prelude Boolean "and", lazy in the second argument