Hoogle Search
Within LTS Haskell 24.34 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
(
<&&> ) :: 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.
-
stm-conduit Data.Conduit.Async An operator form of buffer. In general you should be able to replace any use of $$ with $$& and suddenly reap the benefit of concurrency, if your conduits were spending time waiting on each other. The underlying monad must always be an instance of 'MonadBaseControl IO'. If at least one of the two conduits is a CFConduit, it must additionally be a in instance of MonadResource.
>>> CL.sourceList [1,2,3] $$& CL.consume [1,2,3]
It can be combined with $=& and $=. This creates two threads; the first thread produces the list and the second thread does the map and the consume:>>> CL.sourceList [1,2,3] $$& mapC (*2) $= CL.consume [2,4,6]
This creates three threads. The three conduits all run in their own threads:>>> CL.sourceList [1,2,3] $$& mapC (*2) $=& CL.consume [2,4,6]
>>> CL.sourceList [1,2,3] $$& (mapC (*2) $= mapC (+1)) $=& CL.consume [3,5,7]