Hoogle Search
Within LTS Haskell 24.22 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
(
?&. ) :: EntityField record Value -> [Text] -> Filter recordpersistent-postgresql Database.Persist.Postgresql.JSON This operator takes a column and a list of strings to test whether ALL of the elements of the list are top level fields in an object.
column ?&. list
N.B. An empty list will match anything. Also, this operator might have some unexpected interactions with non-object values. Please reference the examples.Objects
{"a":null} ?& ["a"] == True {"a":null} ?& ["a","a"] == True {"test":false,"a":500} ?& ["a"] == True {"test":false,"a":500} ?& ["a","b"] == False {} ?& ["{}"] == False {"b":{"a":[]}} ?& ["a"] == False {"b":{"a":[]},"c":false} ?& ["a","c"] == False {"a":1,"b":2,"c":3,"d":4} ?& ["b","d"] == True {} ?& [] == True {"b":{"a":[]},"test":null} ?& [] == TrueArrays
This operator will match an array if all of the elements of the list are matching string elements of the array.["a"] ?& ["a"] == True ["a"] ?& ["a","a"] == True [["a"]] ?& ["a"] == False ["a","b","c"] ?& ["a","b","d"] == False [9,"false","1",null] ?& ["1","false"] == True [] ?& ["a","b"] == False [{"a":true}] ?& ["a"] == False ["a","b","c","d"] ?& ["b","c","d"] == True [null,4,{"test":false}] ?& [] == True [] ?& [] == TrueOther values
This operator functions much like an equivalence operator on strings only. If a string matches with all elements of the given list, the comparison matches."a" ?& ["a"] == True "1" ?& ["a","1"] == False "b" ?& ["b","b"] == True "ab" ?& ["a","b"] == False 1 ?& ["1"] == False null ?& ["null"] == False true ?& ["true"] == False 31337 ?& [] == True true ?& [] == True null ?& [] == True
(
<&&> ) :: Selective f => f Bool -> f Bool -> f Boolrebase Rebase.Prelude A lifted version of lazy Boolean AND.
(
<&> ) :: Functor f => f a -> (a -> b) -> f brebase Rebase.Prelude Flipped version of <$>.
(<&>) = flip fmap
Examples
Apply (+1) to a list, a Just and a Right:>>> Just 2 <&> (+1) Just 3
>>> [1,2,3] <&> (+1) [2,3,4]
>>> Right 3 <&> (+1) Right 4
(
<&> ) :: Functor f => f a -> (a -> b) -> f bturtle Turtle Flipped version of <$>.
(<&>) = flip fmap
Examples
Apply (+1) to a list, a Just and a Right:>>> Just 2 <&> (+1) Just 3
>>> [1,2,3] <&> (+1) [2,3,4]
>>> Right 3 <&> (+1) Right 4
(
.&&. ) :: Monad m => m ExitCode -> m ExitCode -> m ExitCodeturtle Turtle.Prelude Analogous to && in Bash Runs the second command only if the first one returns ExitSuccess
(
<&> ) :: Functor f => f a -> (a -> b) -> f bbase-prelude BasePrelude Flipped version of <$>.
(<&>) = flip fmap
Examples
Apply (+1) to a list, a Just and a Right:>>> Just 2 <&> (+1) Just 3
>>> [1,2,3] <&> (+1) [2,3,4]
>>> Right 3 <&> (+1) Right 4
(
.&. ) :: Bits a => a -> a -> abase-prelude BasePrelude.Operators Bitwise "and"
(
<&> ) :: Functor f => f a -> (a -> b) -> f bbase-prelude BasePrelude.Operators Flipped version of <$>.
(<&>) = flip fmap
Examples
Apply (+1) to a list, a Just and a Right:>>> Just 2 <&> (+1) Just 3
>>> [1,2,3] <&> (+1) [2,3,4]
>>> Right 3 <&> (+1) Right 4
(
<&> ) :: Functor f => f a -> (a -> b) -> f bhledger Hledger.Cli.Script Flipped version of <$>.
(<&>) = flip fmap
Examples
Apply (+1) to a list, a Just and a Right:>>> Just 2 <&> (+1) Just 3
>>> [1,2,3] <&> (+1) [2,3,4]
>>> Right 3 <&> (+1) Right 4
(
:&: ) :: forall t (ts1 :: [Type]) . !t -> !HVect ts1 -> HVect (t ': ts1)hvect Data.HVect No documentation available.