Hoogle Search
Within LTS Haskell 22.21 (ghc-9.6.5)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
(
<.|.= ) :: (MonadState s m, Bits a) => LensLike' ((,) a) s a -> a -> m alens Data.Bits.Lens Modify the target(s) of a Lens', (or Traversal) by computing its bitwise .|. with another value, returning the result (or a monoidal summary of all of the results traversed).
>>> runState (_1 <.|.= 7) (28,0) (31,(31,0))
(<.|.=) :: (MonadState s m, Bits a) => Lens' s a -> a -> m a (<.|.=) :: (MonadState s m, Bits a, Monoid a) => Traversal' s a -> a -> m a
(
<.|.~ ) :: Bits a => LensLike ((,) a) s t a a -> a -> s -> (a, t)lens Data.Bits.Lens Bitwise .|. the target(s) of a Lens (or Traversal), returning the result (or a monoidal summary of all of the results).
>>> _2 <.|.~ 6 $ ("hello",3) (7,("hello",7))
(<.|.~) :: Bits a => Iso s t a a -> a -> s -> (a, t) (<.|.~) :: Bits a => Lens s t a a -> a -> s -> (a, t) (<.|.~) :: (Bits a, Monoid a) => Traversal s t a a -> a -> s -> (a, t)
(
<<.|.= ) :: (MonadState s m, Bits a) => LensLike' ((,) a) s a -> a -> m alens Data.Bits.Lens Modify the target(s) of a Lens', (or Traversal') by computing its bitwise .|. with another value, returning the original value (or a monoidal summary of all the original values). When you do not need the old value, (.|.=) is more flexible.
>>> runState (_1 <<.|.= 7) (28,0) (28,(31,0))
(<<.|.=) :: (MonadState s m, Bits a) => Lens' s a -> a -> m a (<<.|.=) :: (MonadState s m, Bits a, Monoid a) => Traversal' s a -> a -> m a
(
<<.|.~ ) :: Bits a => Optical' (->) q ((,) a) s a -> a -> q s (a, s)lens Data.Bits.Lens Bitwise .|. the target(s) of a Lens or Traversal, and return the original value, or a monoidal summary of the original values. When you do not need the old value, (.|.~) is more flexible.
>>> _2 <<.|.~ 6 $ ("hello", 3) (3,("hello",7))
(<<.|.~) :: Bits a => Iso s t a a -> a -> s -> (a, t) (<<.|.~) :: Bits a => Lens s t a a -> a -> s -> (a, t) (<<.|.~) :: (Bits a, Monoid a) => Traversal s t a a -> a -> s -> (a, t)
(
||. ) :: forall v . [Filter v] -> [Filter v] -> [Filter v]persistent Database.Persist The OR of two lists of filters. For example:
selectList ([ PersonAge >. 25 , PersonAge <. 30 ] ||. [ PersonIncome >. 15000 , PersonIncome <. 25000 ]) []
will filter records where a person's age is between 25 and 30 or a person's income is between (15000 and 25000). If you are looking for an (&&.) operator to do (A AND B AND (C OR D)) you can use the (++) operator instead as there is no (&&.). For example:selectList ([ PersonAge >. 25 , PersonAge <. 30 ] ++ ([PersonCategory ==. 1] ||. [PersonCategory ==. 5])) []
will filter records where a person's age is between 25 and 30 and (person's category is either 1 or 5).(
.|. ) :: JExpr -> JExpr -> JExprghc GHC.JS.Make JS infix bit operators
(
.||. ) :: JExpr -> JExpr -> JExprghc GHC.JS.Make JS infix bit operators
(
.|. ) :: Bits a => a -> a -> aghc GHC.Prelude.Basic Bitwise "or"
(
.|. ) :: BitOps bits => bits -> bits -> bitsbasement Basement.Bits No documentation available.
(
.|. ) :: Bits a => a -> a -> aghc-lib-parser GHC.Prelude.Basic Bitwise "or"