Hoogle Search

Within LTS Haskell 24.38 (ghc-9.10.3)

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

  1. pixelMap :: (Pixel a, Pixel b) => (a -> b) -> Image a -> Image b

    JuicyPixels Codec.Picture.Types

    map equivalent for an image, working at the pixel level. Little example : a brightness function for an rgb image

    brightnessRGB8 :: Int -> Image PixelRGB8 -> Image PixelRGB8
    brightnessRGB8 add = pixelMap brightFunction
    where up v = fromIntegral (fromIntegral v + add)
    brightFunction (PixelRGB8 r g b) =
    PixelRGB8 (up r) (up g) (up b)
    

  2. pixelMapXY :: (Pixel a, Pixel b) => (Int -> Int -> a -> b) -> Image a -> Image b

    JuicyPixels Codec.Picture.Types

    Just like pixelMap only the function takes the pixel coordinates as additional parameters.

  3. toneMapping :: PixelF -> Image PixelRGBF -> Image PixelRGBF

    JuicyPixels Codec.Picture.Types

    Perform a tone mapping operation on an High dynamic range image.

  4. parMap :: Strategy b -> (a -> b) -> [a] -> [b]

    parallel Control.Parallel.Strategies

    A combination of parList and map, encapsulating a common pattern:

    parMap strat f = withStrategy (parList strat) . map f
    

  5. seqMap :: Strategy k -> Strategy v -> Strategy (Map k v)

    parallel Control.Seq

    Evaluate the keys and values of a map according to the given strategies.

  6. contramapRep :: Representable f => (a -> b) -> f b -> f a

    adjunctions Data.Functor.Contravariant.Rep

    No documentation available.

  7. contramapWithRep :: Representable f => (b -> Either a (Rep f)) -> f a -> f b

    adjunctions Data.Functor.Contravariant.Rep

    contramapWithRep f p ≡ tabulate $ either (index p) id . f
    

  8. fmapRep :: Representable f => (a -> b) -> f a -> f b

    adjunctions Data.Functor.Rep

    No documentation available.

  9. ifoldMapRep :: (Representable r, Foldable r, Monoid m) => (Rep r -> a -> m) -> r a -> m

    adjunctions Data.Functor.Rep

    No documentation available.

  10. imapRep :: Representable r => (Rep r -> a -> a') -> r a -> r a'

    adjunctions Data.Functor.Rep

    No documentation available.

Page 480 of many | Previous | Next