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.
(
&&= ) :: MonadState s m => ASetter' s Bool -> Bool -> m ()diagrams-lib Diagrams.Prelude 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 -> tdiagrams-lib Diagrams.Prelude 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
-
diagrams-lib Diagrams.Prelude 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)
-
Cabal-syntax Distribution.Compat.Prelude No documentation available.
-
comfort-array Data.Array.Comfort.Storable.Dim2 No documentation available.
-
comfort-array Data.Array.Comfort.Storable.Dim2 No documentation available.
(
&&& ) :: (a -> Bool) -> (a -> Bool) -> a -> Boolleancheck Test.LeanCheck.Utils.Operators And (&&) operator over one-argument properties. Allows building conjuntions between one-argument properties:
> holds 100 $ id === (+0) &&& id === (id . id) True
(
&&&& ) :: (a -> b -> Bool) -> (a -> b -> Bool) -> a -> b -> Boolleancheck Test.LeanCheck.Utils.Operators And (&&) operator over two-argument properties. Allows building conjuntions between two-argument properties:
> holds 100 $ (+) ==== flip (+) &&&& (+) ==== (*) False
(
&&&&& ) :: (a -> b -> c -> Bool) -> (a -> b -> c -> Bool) -> a -> b -> c -> Boolleancheck Test.LeanCheck.Utils.Operators And operator over three-argument properties.
(
&&^ ) :: Monad m => m Bool -> m Bool -> m Boolrelude Relude.Bool.Guard Monadic version of (&&) operator. It is lazy by the second argument (similar to (||)), meaning that if the first argument is False, the function will return False without evaluating the second argument.
>>> Just False &&^ Just True Just False >>> Just True &&^ Just True Just True >>> Just True &&^ Nothing Nothing >>> Just False &&^ Nothing Just False >>> Just False &&^ error "Shouldn't be evaluated" Just False