Hoogle Search

Within LTS Haskell 24.4 (ghc-9.10.2)

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

  1. ($~) :: (HasUpdate t a b, MonadIO m) => t -> (a -> b) -> m ()

    sdl2 SDL

    Transform the contents of a state variable with a given funtion.

  2. ($~!) :: (HasUpdate t a b, MonadIO m) => t -> (a -> b) -> m ()

    sdl2 SDL

    This is a variant of $~ which is strict in the transformed value.

  3. ($!) :: (a -> b) -> a -> b

    basic-prelude CorePrelude

    Strict (call-by-value) application operator. It takes a function and an argument, evaluates the argument to weak head normal form (WHNF), then calls the function with that value.

  4. ($!) :: (a -> b) -> a -> b

    classy-prelude ClassyPrelude

    Strict (call-by-value) application operator. It takes a function and an argument, evaluates the argument to weak head normal form (WHNF), then calls the function with that value.

  5. ($!!) :: NFData a => (a -> b) -> a -> b

    classy-prelude ClassyPrelude

    the deep analogue of $!. In the expression f $!! x, x is fully evaluated before the function f is applied to it.

  6. ($>) :: Functor f => f a -> b -> f b

    classy-prelude ClassyPrelude

    Flipped version of <$.

    Examples

    Replace the contents of a Maybe Int with a constant String:
    >>> Nothing $> "foo"
    Nothing
    
    >>> Just 90210 $> "foo"
    Just "foo"
    
    Replace the contents of an Either Int Int with a constant String, resulting in an Either Int String:
    >>> Left 8675309 $> "foo"
    Left 8675309
    
    >>> Right 8675309 $> "foo"
    Right "foo"
    
    Replace each element of a list with a constant String:
    >>> [1,2,3] $> "foo"
    ["foo","foo","foo"]
    
    Replace the second element of a pair with a constant String:
    >>> (1,2) $> "foo"
    (1,"foo")
    

  7. ($$) :: Doc -> Doc -> Doc

    ghc-lib-parser GHC.Internal.TH.PprLib

    No documentation available.

  8. ($+$) :: Doc -> Doc -> Doc

    ghc-lib-parser GHC.Internal.TH.PprLib

    No documentation available.

  9. ($$$) :: JsRender doc => doc -> doc -> doc

    ghc-lib-parser GHC.JS.Ppr

    Concatenate with an optional newline

  10. ($!) :: (a -> b) -> a -> b

    ghc-lib-parser GHC.Prelude.Basic

    Strict (call-by-value) application operator. It takes a function and an argument, evaluates the argument to weak head normal form (WHNF), then calls the function with that value.

Page 16 of many | Previous | Next