Hoogle Search

Within LTS Haskell 24.42 (ghc-9.10.3)

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

  1. (.:) :: Text -> (forall t1 . () => Grammar Position (Sexp :- t1) (a :- t1)) -> Grammar Position (PropertyList :- t) (PropertyList :- (a :- t))

    sexp-grammar Language.SexpGrammar

    Property by a key grammar. Infix version of key.

  2. (.:?) :: Text -> (forall t1 . () => Grammar Position (Sexp :- t1) (a :- t1)) -> Grammar Position (PropertyList :- t) (PropertyList :- (Maybe a :- t))

    sexp-grammar Language.SexpGrammar

    Optional property by a key grammar. Infix version of optKey.

  3. (-:) :: 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"
    

  4. (.:) :: 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]
    

  5. (.:) :: 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]
    

  6. (|:) :: (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)

  7. (|:) :: (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)

  8. (.:) :: 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]
    

  9. (|:) :: (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)

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

    toml-reader-parse TOML.Parse

    No documentation available.

Page 102 of many | Previous | Next