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. ($=) :: forall w (m :: Type -> Type) c . Set w m c => Entity -> c -> SystemT w m ()

    apecs Apecs.System

    Writes a Component to a given Entity. Will overwrite existing Components. set operator

  2. ($~) :: forall w (m :: Type -> Type) cx cy . (Get w m cx, Set w m cy) => Entity -> (cx -> cy) -> SystemT w m ()

    apecs Apecs.System

    Applies a function, if possible. modify operator

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

    base-prelude BasePrelude

    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. ($>) :: Functor f => f a -> b -> f b

    base-prelude BasePrelude

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

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

    base-prelude BasePrelude.Operators

    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.

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

    base-prelude BasePrelude.Operators

    This is >$ with its arguments flipped.

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

    base-prelude BasePrelude.Operators

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

  8. ($*) :: AffineTransform a b => Transform b -> a -> a

    cubicbezier Geom2D

    Operator for applying a transformation.

  9. type (h :: Type -> Type -> Type -> Type) $$ (f :: Type -> Type) = h f

    data-effects-core Control.Effect

    Type-level infix applcation for higher-order functors.

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

    hledger Hledger.Cli.Script

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

Page 19 of many | Previous | Next