Hoogle Search

Within LTS Haskell 24.5 (ghc-9.10.2)

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

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

    xmonad-contrib XMonad.Prelude

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

  2. skipRet :: Monad m => m b -> a -> m a

    yjtools Control.Monad.Tools

    No documentation available.

  3. (^*) :: (Functor f, Num a) => f a -> a -> f a

    linear Linear.Vector

    Compute the right scalar product

    >>> V2 3 4 ^* 2
    V2 6 8
    

  4. (^*) :: (Functor f, Num a) => f a -> a -> f a

    Rasterific Graphics.Rasterific.Linear

    Compute the right scalar product

    >>> V2 3 4 ^* 2
    V2 6 8
    

  5. (^/) :: (Functor f, Floating a) => f a -> a -> f a

    Rasterific Graphics.Rasterific.Linear

    Compute division by a scalar on the right.

Page 10 of many | Previous | Next