Hoogle Search

Within LTS Haskell 24.25 (ghc-9.10.3)

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

  1. hashFinalizePrefix :: (HashAlgorithmPrefix a, ByteArrayAccess ba) => Context a -> ba -> Int -> Digest a

    cryptonite Crypto.Hash

    Update the context with the first N bytes of a bytestring and return the digest. The code path is independent from N but much slower than a normal hashUpdate. The function can be called for the last bytes of a message, in order to exclude a variable padding, without leaking the padding length. The begining of the message, never impacted by the padding, should preferably go through hashUpdate for better performance.

  2. hashPrefix :: (ByteArrayAccess ba, HashAlgorithmPrefix a) => ba -> Int -> Digest a

    cryptonite Crypto.Hash

    Hash the first N bytes of a bytestring, with code path independent from N.

  3. hashPrefixWith :: (ByteArrayAccess ba, HashAlgorithmPrefix alg) => alg -> ba -> Int -> Digest alg

    cryptonite Crypto.Hash

    Run the hashPrefix function but takes an explicit hash algorithm parameter

  4. class HashAlgorithm a => HashAlgorithmPrefix a

    cryptonite Crypto.Hash.Algorithms

    Hashing algorithms with a constant-time implementation.

  5. isPrefixOf :: ShortText -> ShortText -> Bool

    text-short Data.Text.Short

    Tests whether the first ShortText is a prefix of the second ShortText

    >>> isPrefixOf "ab" "abcdef"
    True
    
    >>> isPrefixOf "ac" "abcdef"
    False
    
    isPrefixOf "" t == True
    
    isPrefixOf t t == True
    

  6. isSuffixOf :: ShortText -> ShortText -> Bool

    text-short Data.Text.Short

    Tests whether the first ShortText is a suffix of the second ShortText

    >>> isSuffixOf "ef" "abcdef"
    True
    
    >>> isPrefixOf "df" "abcdef"
    False
    
    isSuffixOf "" t == True
    
    isSuffixOf t t == True
    

  7. stripPrefix :: ShortText -> ShortText -> Maybe ShortText

    text-short Data.Text.Short

    Strip prefix from second ShortText argument. Returns Nothing if first argument is not a prefix of the second argument.

    >>> stripPrefix "text-" "text-short"
    Just "short"
    
    >>> stripPrefix "test-" "text-short"
    Nothing
    

  8. stripSuffix :: ShortText -> ShortText -> Maybe ShortText

    text-short Data.Text.Short

    Strip suffix from second ShortText argument. Returns Nothing if first argument is not a suffix of the second argument.

    >>> stripSuffix "-short" "text-short"
    Just "text"
    
    >>> stripSuffix "-utf8" "text-short"
    Nothing
    

  9. package JuicyPixels

    Picture loading/serialization (in png, jpeg, bitmap, gif, tga, tiff and radiance) This library can load and store images in PNG,Bitmap, Jpeg, Radiance, Tiff and Gif images.

  10. class (Storable PixelBaseComponent a, Num PixelBaseComponent a, Eq a) => Pixel a

    JuicyPixels Codec.Picture

    Definition of pixels used in images. Each pixel has a color space, and a representative component (Word8 or Float).

Page 100 of many | Previous | Next