Hoogle Search

Within LTS Haskell 24.34 (ghc-9.10.3)

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

  1. premap :: (a -> b) -> Scan b r -> Scan a r

    foldl Control.Scanl

    (premap f scaner) returns a new Scan where f is applied at each step

    scan (premap f scaner) list = scan scaner (map f list)
    
    premap id = id
    
    premap (f . g) = premap g . premap f
    
    premap k (pure r) = pure r
    
    premap k (f <*> x) = premap k f <*> premap k x
    

  2. premapM :: Monad m => (a -> m b) -> ScanM m b r -> ScanM m a r

    foldl Control.Scanl

    (premapM f scaner) returns a new ScanM where f is applied to each input element

    premapM return = id
    
    premapM (f <=< g) = premap g . premap f
    
    premapM k (pure r) = pure r
    
    premapM k (f <*> x) = premapM k f <*> premapM k x
    

  3. type SessionMap = Map Text ByteString

    yesod-core Yesod.Core.Handler

    No documentation available.

  4. type KeyedTypeMap = HashMap (TypeRep, ByteString) Dynamic

    yesod-core Yesod.Core.Types

    No documentation available.

  5. type SessionMap = Map Text ByteString

    yesod-core Yesod.Core.Types

    No documentation available.

  6. type TypeMap = HashMap TypeRep Dynamic

    yesod-core Yesod.Core.Types

    No documentation available.

  7. colorMap :: Pixel a => (PixelBaseComponent a -> PixelBaseComponent a) -> a -> a

    JuicyPixels Codec.Picture

    Apply a function to each component of a pixel. If the color type possess an alpha (transparency channel), it is treated like the other color components.

  8. decodeBitmap :: ByteString -> Either String DynamicImage

    JuicyPixels Codec.Picture

    Try to decode a bitmap image. Right now this function can output the following image:

  9. dynamicMap :: (forall pixel . Pixel pixel => Image pixel -> a) -> DynamicImage -> a

    JuicyPixels Codec.Picture

    Helper function to help extract information from dynamic image. To get the width of a dynamic image, you can use the following snippet:

    dynWidth :: DynamicImage -> Int
    dynWidth img = dynamicMap imageWidth img
    

  10. dynamicPixelMap :: (forall pixel . Pixel pixel => Image pixel -> Image pixel) -> DynamicImage -> DynamicImage

    JuicyPixels Codec.Picture

    Equivalent of the pixelMap function for the dynamic images. You can perform pixel colorspace independant operations with this function. For instance, if you want to extract a square crop of any image, without caring about colorspace, you can use the following snippet.

    dynSquare :: DynamicImage -> DynamicImage
    dynSquare = dynamicPixelMap squareImage
    
    squareImage :: Pixel a => Image a -> Image a
    squareImage img = generateImage (\x y -> pixelAt img x y) edge edge
    where edge = min (imageWidth img) (imageHeight img)
    

Page 476 of many | Previous | Next