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.

  1. (:.) :: forall (a :: Nat) (b :: Nat) c . (1 <= a, 1 <= b) => c -> RangeL (a - 1) (b - 1) c -> RangeL a b c

    ranged-list Data.List.Range

    No documentation available.

  2. (<..>) :: Functor f => (a -> b) -> f (f a) -> f (f b)

    status-notifier-item StatusNotifier.Util

    No documentation available.

  3. (|$.) :: (IsStream t, MonadAsync m) => (t m a -> m b) -> t m a -> m b

    streamly 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
    1
    
    Concurrent Since: 0.3.0 (Streamly)

  4. (|&.) :: (IsStream t, MonadAsync m) => t m a -> (t m a -> m b) -> m b

    streamly Streamly.Internal.Data.Stream.IsStream

    Same as |$. but with arguments reversed.

    (|&.) = flip (|$.)
    
    Concurrent Since: 0.3.0 (Streamly)

  5. (|$.) :: (IsStream t, MonadAsync m) => (t m a -> m b) -> t m a -> m b

    streamly 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
    1
    
    Concurrent Since: 0.3.0 (Streamly)

  6. (|&.) :: (IsStream t, MonadAsync m) => t m a -> (t m a -> m b) -> m b

    streamly Streamly.Prelude

    Same as |$. but with arguments reversed.

    (|&.) = flip (|$.)
    
    Concurrent Since: 0.3.0 (Streamly)

  7. ( #. ) :: UI Element -> String -> UI Element

    threepenny-gui Graphics.UI.Threepenny.Core

    Convenient combinator for setting the CSS class on element creation.

  8. (&.) :: forall (key :: Symbol) (kvs :: [Type]) v . (KnownSymbol key, HasKey key kvs v) => KVList kvs -> ListKey key -> v

    type-level-kv-list Data.KVList

    No documentation available.

  9. (&.?) :: forall (key :: Symbol) (kvs :: [Type]) v f . (KnownSymbol key, HasKey key kvs v, Functor f) => f (KVList kvs) -> ListKey key -> f v

    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"
    

  10. (&.??) :: forall (key :: Symbol) (kvs :: [Type]) m v . (KnownSymbol key, HasKey key kvs (m v), Monad m) => m (KVList kvs) -> ListKey key -> m v

    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"
    

Page 153 of many | Previous | Next