Hoogle Search

Within LTS Haskell 24.6 (ghc-9.10.2)

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

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

    protolude Protolude

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

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

    protolude Protolude.Base

    No documentation available.

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

    protolude Protolude.Functor

    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")
    

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

    HTF Test.Framework.Pretty

    Above, except that if the last line of the first argument stops at least one position before the first line of the second begins, these two lines are overlapped. For example:

    text "hi" $$ nest 5 (text "there")
    
    lays out as
    hi   there
    
    rather than
    hi
    there
    
    $$ is associative, with identity empty, and also satisfies
    • (x $$ y) <> z = x $$ (y <> z), if y non-empty.

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

    HTF Test.Framework.Pretty

    Above, with no overlapping. $+$ is associative, with identity empty.

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

    numeric-prelude NumericPrelude

    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.

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

    numeric-prelude NumericPrelude.Base

    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.

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

    numhask NumHask.Prelude

    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.

  9. ($=) :: (HasSetter t a, MonadIO m) => t -> a -> m ()

    sdl2 SDL

    Write a new value into a state variable.

  10. ($=!) :: (HasSetter t a, MonadIO m) => t -> a -> m ()

    sdl2 SDL

    This is a variant of $= which is strict in the value to be set.

Page 15 of many | Previous | Next