Hoogle Search
Within LTS Haskell 24.38 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
-
ranged-list Data.List.Range No documentation available.
(
<..> ) :: Functor f => (a -> b) -> f (f a) -> f (f b)status-notifier-item StatusNotifier.Util No documentation available.
(
|$. ) :: (IsStream t, MonadAsync m) => (t m a -> m b) -> t m a -> m bstreamly Streamly.Internal.Data.Stream.IsStream Parallel fold application operator; applies a fold function t m a -> m b to a stream t m a concurrently; The the input stream is evaluated asynchronously in an independent thread yielding elements to a buffer and the folding action runs in another thread consuming the input from the buffer. If you read the signature as (t m a -> m b) -> (t m a -> m b) you can look at it as a transformation that converts a fold function to a buffered concurrent fold function. The . at the end of the operator is a mnemonic for termination of the stream. In the example below, each stage introduces a delay of 1 sec but output is printed every second because both stages are concurrent.
>>> import Control.Concurrent (threadDelay) >>> import Streamly.Prelude ((|$.)) >>> :{ Stream.foldlM' (\_ a -> threadDelay 1000000 >> print a) (return ()) |$. Stream.replicateM 3 (threadDelay 1000000 >> return 1) :} 1 1 1Concurrent Since: 0.3.0 (Streamly)(
|&. ) :: (IsStream t, MonadAsync m) => t m a -> (t m a -> m b) -> m bstreamly Streamly.Internal.Data.Stream.IsStream Same as |$. but with arguments reversed.
(|&.) = flip (|$.)
Concurrent Since: 0.3.0 (Streamly)(
|$. ) :: (IsStream t, MonadAsync m) => (t m a -> m b) -> t m a -> m bstreamly Streamly.Prelude Parallel fold application operator; applies a fold function t m a -> m b to a stream t m a concurrently; The the input stream is evaluated asynchronously in an independent thread yielding elements to a buffer and the folding action runs in another thread consuming the input from the buffer. If you read the signature as (t m a -> m b) -> (t m a -> m b) you can look at it as a transformation that converts a fold function to a buffered concurrent fold function. The . at the end of the operator is a mnemonic for termination of the stream. In the example below, each stage introduces a delay of 1 sec but output is printed every second because both stages are concurrent.
>>> import Control.Concurrent (threadDelay) >>> import Streamly.Prelude ((|$.)) >>> :{ Stream.foldlM' (\_ a -> threadDelay 1000000 >> print a) (return ()) |$. Stream.replicateM 3 (threadDelay 1000000 >> return 1) :} 1 1 1Concurrent Since: 0.3.0 (Streamly)(
|&. ) :: (IsStream t, MonadAsync m) => t m a -> (t m a -> m b) -> m bstreamly Streamly.Prelude Same as |$. but with arguments reversed.
(|&.) = flip (|$.)
Concurrent Since: 0.3.0 (Streamly)(
#. ) :: UI Element -> String -> UI Elementthreepenny-gui Graphics.UI.Threepenny.Core Convenient combinator for setting the CSS class on element creation.
-
type-level-kv-list Data.KVList No documentation available.
-
type-level-kv-list Data.KVList Helper operator for optional chain.
(&.?) mkvs k = fmap (&. k) mkvs
>>> import Data.KVList ((&.?)) >>> :{ ( KVList.empty &= #foo := Just (KVList.empty &= #bar := "bar" ) ) &. #foo &.? #bar :} Just "bar" -
type-level-kv-list Data.KVList Helper operator for optional chain.
(&.??) mkvs k = (&. k) =<< mkvs
>>> import Data.KVList ((&.??)) >>> :{ ( KVList.empty &= #foo := Just (KVList.empty &= #bar := Just "bar" ) ) &. #foo &.?? #bar :} Just "bar"