Hoogle Search

Within LTS Haskell 24.32 (ghc-9.10.3)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. (-:) :: forall (m :: Type -> Type) a . Monad m => Text -> StitchT m a -> StitchT m a

    stitch Stitch.Combinators

    "pref" -: assignments prefixes all the keys of assignments with pref-. This can be useful for putting a bunch of grouped "font" or "border" properties together – for example, the following two actions function the same:

    "font" -: do
    "size" .= "1.5rem"
    "family" .= "Helvetica"
    "weight" .= "bold"
    
    "font-size" .= "1.5rem"
    "font-family" .= "Helvetica"
    "font-weight" .= "bold"
    

  2. (.:) :: forall t a (m :: Type -> Type) . IsStream t => a -> t m a -> t m a

    streamly Streamly.Internal.Data.Stream.IsStream

    Operator equivalent of cons.

    > toList $ 1 .: 2 .: 3 .: nil
    [1,2,3]
    

  3. (.:) :: forall t a (m :: Type -> Type) . IsStream t => a -> t m a -> t m a

    streamly Streamly.Internal.Data.Stream.IsStream

    Operator equivalent of cons.

    > toList $ 1 .: 2 .: 3 .: nil
    [1,2,3]
    

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

    streamly Streamly.Internal.Data.Stream.IsStream

    Operator equivalent of consM. We can read it as "parallel colon" to remember that | comes before :.

    > toList $ getLine |: getLine |: nil
    hello
    world
    ["hello","world"]
    
    let delay = threadDelay 1000000 >> print 1
    drain $ fromSerial  $ delay |: delay |: delay |: nil
    drain $ fromParallel $ delay |: delay |: delay |: nil
    
    Concurrent (do not use fromParallel to construct infinite streams)

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

    streamly Streamly.Internal.Data.Stream.IsStream

    Operator equivalent of consM. We can read it as "parallel colon" to remember that | comes before :.

    > toList $ getLine |: getLine |: nil
    hello
    world
    ["hello","world"]
    
    let delay = threadDelay 1000000 >> print 1
    drain $ fromSerial  $ delay |: delay |: delay |: nil
    drain $ fromParallel $ delay |: delay |: delay |: nil
    
    Concurrent (do not use fromParallel to construct infinite streams)

  6. (.:) :: forall t a (m :: Type -> Type) . IsStream t => a -> t m a -> t m a

    streamly Streamly.Prelude

    Operator equivalent of cons.

    > toList $ 1 .: 2 .: 3 .: nil
    [1,2,3]
    

  7. (|:) :: (IsStream t, MonadAsync m) => m a -> t m a -> t m a

    streamly Streamly.Prelude

    Operator equivalent of consM. We can read it as "parallel colon" to remember that | comes before :.

    > toList $ getLine |: getLine |: nil
    hello
    world
    ["hello","world"]
    
    let delay = threadDelay 1000000 >> print 1
    drain $ fromSerial  $ delay |: delay |: delay |: nil
    drain $ fromParallel $ delay |: delay |: delay |: nil
    
    Concurrent (do not use fromParallel to construct infinite streams)

  8. (.:) :: (Index a, FromToml Value b) => a -> Text -> Parser b

    toml-reader-parse TOML.Parse

    No documentation available.

  9. (.:?) :: (Index a, FromToml Value b) => a -> Text -> Parser (Maybe b)

    toml-reader-parse TOML.Parse

    No documentation available.

  10. (=:) :: forall (a :: TValue) . Key -> Value a -> TDSL

    tomland Toml.Type.Edsl

    Adds key-value pair to the TDSL.

Page 102 of many | Previous | Next